Skip to content

Commit

Permalink
bsserver-demo: Fix Bootstrap Config dialog issue.
Browse files Browse the repository at this point in the history
Invalid button state : sometime add/next is not disabled when it should
be.
  • Loading branch information
sbernard31 committed Feb 24, 2022
1 parent 30f79d3 commit d4839f5
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,18 @@
import { toHex, base64ToBytes } from "@leshan-server-core-demo/js/byteutils.js";
import EndpointStep from "./EndpointStep.vue";
import SecurityStep from "./SecurityStep.vue";
import DeleteStep from './DeleteStep.vue';
import DeleteStep from "./DeleteStep.vue";
import ServerStep from "./ServerStep.vue";
import BootstrapServerStep from "./BootstrapServerStep.vue";

export default {
components: { EndpointStep, SecurityStep, ServerStep, BootstrapServerStep, DeleteStep },
components: {
EndpointStep,
SecurityStep,
ServerStep,
BootstrapServerStep,
DeleteStep,
},
props: { value: Boolean /*open/close dialog*/ },
data() {
return {
Expand Down Expand Up @@ -190,11 +196,12 @@ export default {
dm: { mode: "no_sec" },
bs: null,
toDelete: ["/0", "/1"],
autoIdForSecurityObject:false
autoIdForSecurityObject: false,
};
this.currentStep = 1;
for (let i = 1; i <= this.nbSteps; i++) {
this.valid[i] = true;
// Not so clean but didn't find better way for now than initialize valid value manually
this.valid[i] = i == 1 ? false : true;
if (this.$refs["step" + i]) this.$refs["step" + i].resetValidation();
}
}
Expand Down

0 comments on commit d4839f5

Please sign in to comment.