Skip to content

Commit

Permalink
fix more steps not being marked complete
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbitronics committed Jan 22, 2025
1 parent 1f97554 commit a4657f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/2sv/smartphone/CodeVerified.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<ProfileWizard ref="wizard">
<ProfileWizard>
<BasePage>
<template #header>
{{ $t('2sv.smartphone.codeVerified.header') }}
Expand All @@ -22,14 +22,15 @@

<script>
import ProfileWizard from '@/profile/ProfileWizard.vue'
import steps from '../../profile/steps'
export default {
components: {
ProfileWizard,
},
async created() {
await this.$nextTick() // best option I could figure out to ensure this.$refs.wizard was available
this.$refs.wizard.completed()
const step = steps.forPath(this.$route.path)
step.state = 'complete'
},
}
</script>
5 changes: 3 additions & 2 deletions src/password/CompleteReset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

<script>
import ProfileWizard from '@/profile/ProfileWizard.vue'
import steps from '../profile/steps'
export default {
components: {
ProfileWizard,
},
async created() {
await this.$nextTick() // best option I could figure out to ensure this.$refs.wizard was available
this.$refs.wizard.completed()
const step = steps.forPath(this.$route.path)
step.state = 'complete'
},
}
</script>

0 comments on commit a4657f7

Please sign in to comment.