Skip to content

Commit 44de95d

Browse files
committed
Fixed issues with wizard
1 parent a9e7006 commit 44de95d

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

src/Components/Wizard/Wizard.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ export default {
267267
));
268268
},
269269
270+
goto(index) {
271+
this.$emit('update:active', this.currentStep = Math.min(this.currentStep + 1, index));
272+
},
273+
270274
next() {
271275
this.$emit('update:active', this.currentStep = Math.min(this.currentStep + 1, this.$refs.slideDeck.slides().length - 1));
272276
},

src/Components/Wizard/WizardError.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ $wizard-error-color: #b10805;
9494
height: $font-size-lg * 6;
9595
margin: $font-size-lg auto;
9696
position: relative;
97+
display: flex;
98+
align-items: center;
99+
justify-content: center;
97100
98101
svg {
99-
position: absolute;
100102
width: 100%;
101-
top: 50%;
102-
left: 0;
103103
line-height: 0;
104104
}
105105
}

src/Components/Wizard/WizardStep.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ export default {
7676
7777
performValidityChecks() {
7878
this.checkValidity('validate') ? this.enable() : this.disable();
79-
this.checkValidity('backButton') ? this.$refs.wizard.enableBackButton() : this.$refs.wizard.disableBackButton();
79+
80+
if(this.$refs.wizard && this.checkValidity('backButton')) {
81+
this.$refs.wizard.enableBackButton();
82+
}
83+
else if(this.$refs.wizard) {
84+
this.$refs.wizard.disableBackButton();
85+
}
8086
},
8187
8288
disable() {

src/Components/Wizard/WizardSuccess.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ $wizard-success-color: #55b776;
7272
height: $font-size-lg * 6;
7373
margin: $font-size-lg auto;
7474
position: relative;
75+
display: flex;
76+
align-items: center;
77+
justify-content: center;
7578
7679
svg {
77-
position: absolute;
7880
width: 100%;
79-
top: 50%;
80-
left: 0;
8181
line-height: 0;
8282
}
8383
}

0 commit comments

Comments
 (0)