fix: update onboarding status when invite is sent
This commit is contained in:
parent
0fb19212e5
commit
b91521df5a
@ -79,6 +79,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import MultiValueInput from '@/components/Controls/MultiValueInput.vue'
|
import MultiValueInput from '@/components/Controls/MultiValueInput.vue'
|
||||||
|
import { useOnboarding } from '@/composables/onboarding'
|
||||||
import { validateEmail, convertArrayToString } from '@/utils'
|
import { validateEmail, convertArrayToString } from '@/utils'
|
||||||
import {
|
import {
|
||||||
createListResource,
|
createListResource,
|
||||||
@ -88,6 +89,8 @@ import {
|
|||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
|
|
||||||
|
const { updateOnboardingStep } = useOnboarding()
|
||||||
|
|
||||||
const invitees = ref([])
|
const invitees = ref([])
|
||||||
const role = ref('Sales User')
|
const role = ref('Sales User')
|
||||||
const error = ref(null)
|
const error = ref(null)
|
||||||
@ -119,6 +122,7 @@ const inviteByEmail = createResource({
|
|||||||
role.value = 'Sales User'
|
role.value = 'Sales User'
|
||||||
error.value = null
|
error.value = null
|
||||||
pendingInvitations.reload()
|
pendingInvitations.reload()
|
||||||
|
updateOnboardingStep('invite_your_team')
|
||||||
},
|
},
|
||||||
onError(error) {
|
onError(error) {
|
||||||
error.value = error
|
error.value = error
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user