Fix installer wizard step highlighting

This commit is contained in:
Darko Gjorgjijoski
2024-07-29 14:06:21 +02:00
parent 6422da193b
commit 56a555bc4a
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
/> />
<BaseWizard <BaseWizard
:steps="8" :steps="9"
:current-step="currentStepNumber" :current-step="currentStepNumber"
@click="onNavClick" @click="onNavClick"
> >
@@ -48,7 +48,7 @@ export default {
setup() { setup() {
let stepComponent = ref('step_0') let stepComponent = ref('step_0')
let currentStepNumber = ref(1) let currentStepNumber = ref(0)
const router = useRouter() const router = useRouter()
const installationStore = useInstallationStore() const installationStore = useInstallationStore()

View File

@@ -15,13 +15,13 @@
<a <a
v-for="(number, index) in steps" v-for="(number, index) in steps"
:key="index" :key="index"
:class="stepStyle(number)" :class="stepStyle(index)"
class="z-10" class="z-10"
href="#" href="#"
@click.prevent="$emit('click', index)" @click.prevent="$emit('click', index)"
> >
<svg <svg
v-if="currentStep > number" v-if="currentStep > index"
:class="iconClass" :class="iconClass"
fill="currentColor" fill="currentColor"
viewBox="0 0 20 20" viewBox="0 0 20 20"