fix: capture onboarding step event of setting up password
This commit is contained in:
parent
fb2f105520
commit
3234102e55
@ -30,11 +30,13 @@
|
||||
import Password from '@/components/Controls/Password.vue'
|
||||
import { usersStore } from '@/stores/users'
|
||||
import { Dialog, toast, createResource } from 'frappe-ui'
|
||||
import { useOnboarding } from 'frappe-ui/frappe'
|
||||
import { ref } from 'vue'
|
||||
|
||||
const show = defineModel()
|
||||
|
||||
const { getUser } = usersStore()
|
||||
const { updateOnboardingStep } = useOnboarding('frappecrm')
|
||||
|
||||
const newPassword = ref('')
|
||||
const confirmPassword = ref('')
|
||||
@ -52,6 +54,7 @@ const updatePassword = createResource({
|
||||
}
|
||||
},
|
||||
onSuccess: () => {
|
||||
updateOnboardingStep('setup_your_password')
|
||||
toast.success(__('Password updated successfully'))
|
||||
show.value = false
|
||||
newPassword.value = ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user