fix: capture onboarding step event of setting up password

(cherry picked from commit 3234102e55356b85aff619557e8f53a614df045b)
This commit is contained in:
Shariq Ansari 2025-06-17 23:12:43 +05:30 committed by Mergify
parent 54b3802061
commit b047dab16d

View File

@ -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 = ''