91cb011ded
* CodeInput. verify-email page * middleware * Loading toast * Countdown only for registration * Improve middleware * Fix middleware breaking auth flow * Remove old notifications * Remove old onboarding. New segmentation * Remove skip button * Block verify email when verified * useUserEmails composable. Cancel addition * Move user emails queries * Fix fragments etc * redirect updates * HeaderWithEmptyPage * Check env before enforcing * Join workspace * Updates * Fix console warnings on login * Fix register console warnings * Working cache updates * Verify secondary email * Force onboarding off * EMAIL WIP * useIsJustRegistered state * Improve isRequired * Uneeded change * Improved slots * Updates from CR * CR comments * Only show message if forced * Update onboarding middleware * Update loading bar * ref > computed to fix onboarding * Resend tooltip. Better errors * Add other to form. * Email changes * Updates to emails * Remove force email FF * Remove FF's * Hide header on embed * Update graphql.ts * Re-add FF * Update graphql.ts * GQL Fragments * Fix build
50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
<template>
|
|
<HeaderWithEmptyPage empty-header>
|
|
<template #header-left>
|
|
<HeaderLogoBlock
|
|
:active="false"
|
|
class="min-w-40 cursor-pointer"
|
|
no-link
|
|
@click="onCancelClick"
|
|
/>
|
|
</template>
|
|
<template #header-right>
|
|
<FormButton size="sm" color="outline" @click="onCancelClick">Cancel</FormButton>
|
|
</template>
|
|
|
|
<WorkspaceWizard :workspace-id="workspaceId" />
|
|
<WorkspaceWizardCancelDialog
|
|
v-model:open="isCancelDialogOpen"
|
|
:workspace-id="workspaceId"
|
|
/>
|
|
</HeaderWithEmptyPage>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { workspacesRoute } from '~~/lib/common/helpers/route'
|
|
import { WizardSteps } from '~/lib/workspaces/helpers/types'
|
|
import { useWorkspacesWizard } from '~/lib/workspaces/composables/wizard'
|
|
import { useMixpanel } from '~/lib/core/composables/mp'
|
|
|
|
defineProps<{
|
|
workspaceId?: string
|
|
}>()
|
|
|
|
const { currentStep, resetWizardState } = useWorkspacesWizard()
|
|
const mixpanel = useMixpanel()
|
|
|
|
const isCancelDialogOpen = ref(false)
|
|
|
|
const isFirstStep = computed(() => currentStep.value === WizardSteps.Details)
|
|
|
|
const onCancelClick = () => {
|
|
if (isFirstStep.value) {
|
|
navigateTo(workspacesRoute)
|
|
resetWizardState()
|
|
mixpanel.stop_session_recording()
|
|
} else {
|
|
isCancelDialogOpen.value = true
|
|
}
|
|
}
|
|
</script>
|