fix(fe): Only show "why am I seeing this" when forced workspace creation
fix(fe): Only show "why am I seeing this" when forced workspace creation
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
<WorkspaceWizard :workspace-id="workspaceId" />
|
||||
|
||||
<div
|
||||
v-if="requiresWorkspaceCreation && isFirstStep"
|
||||
v-if="requiresWorkspaceCreation && isFirstStep && !registeredThisSession"
|
||||
class="w-full max-w-sm mx-auto mt-4"
|
||||
>
|
||||
<CommonAlert color="neutral" size="xs" hide-icon>
|
||||
@@ -49,7 +49,7 @@ import { homeRoute } 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'
|
||||
import { useAuthManager } from '~/lib/auth/composables/auth'
|
||||
import { useAuthManager, useRegisteredThisSession } from '~/lib/auth/composables/auth'
|
||||
import { useQuery } from '@vue/apollo-composable'
|
||||
import { activeUserWorkspaceExistenceCheckQuery } from '~/lib/auth/graphql/queries'
|
||||
|
||||
@@ -61,6 +61,7 @@ const { currentStep, resetWizardState } = useWorkspacesWizard()
|
||||
const mixpanel = useMixpanel()
|
||||
const { logout } = useAuthManager()
|
||||
const isWorkspacesEnabled = useIsWorkspacesEnabled()
|
||||
const registeredThisSession = useRegisteredThisSession()
|
||||
|
||||
const { result } = useQuery(activeUserWorkspaceExistenceCheckQuery, null, {
|
||||
enabled: isWorkspacesEnabled.value
|
||||
|
||||
@@ -28,11 +28,7 @@
|
||||
/>
|
||||
<template #buttons>
|
||||
<div class="-my-1 w-full flex justify-end">
|
||||
<FormButton
|
||||
v-if="!selectedProject"
|
||||
color="outline"
|
||||
@click="navigateTo(workspaceCreateRoute())"
|
||||
>
|
||||
<FormButton v-if="!selectedProject" color="outline" @click="open = false">
|
||||
Cancel
|
||||
</FormButton>
|
||||
<FormButton
|
||||
|
||||
Reference in New Issue
Block a user