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