fix: maximize if complete now is clicked
This commit is contained in:
parent
b91521df5a
commit
73bb4bd9f8
@ -77,7 +77,12 @@
|
||||
<GettingStartedBanner
|
||||
v-if="!isOnboardingStepsCompleted"
|
||||
:isSidebarCollapsed="isSidebarCollapsed"
|
||||
@completeNow="showHelpModal = true"
|
||||
@completeNow="
|
||||
() => {
|
||||
minimize = false
|
||||
showHelpModal = true
|
||||
}
|
||||
"
|
||||
/>
|
||||
<SidebarLink
|
||||
v-else
|
||||
@ -141,7 +146,7 @@ import {
|
||||
unreadNotificationsCount,
|
||||
notificationsStore,
|
||||
} from '@/stores/notifications'
|
||||
import { isOnboardingStepsCompleted } from '@/composables/onboarding'
|
||||
import { isOnboardingStepsCompleted, minimize } from '@/composables/onboarding'
|
||||
import { FeatherIcon, TrialBanner } from 'frappe-ui'
|
||||
import { useStorage } from '@vueuse/core'
|
||||
import { ref, computed, h } from 'vue'
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
? 'text-ink-gray-5 line-through'
|
||||
: 'text-ink-gray-8',
|
||||
]"
|
||||
@click="step.onClick"
|
||||
@click="() => !step.completed && step.onClick()"
|
||||
>
|
||||
<component :is="step.icon" class="h-4" />
|
||||
<div class="text-base">{{ step.title }}</div>
|
||||
|
||||
@ -29,9 +29,7 @@ const steps = reactive([
|
||||
icon: markRaw(LeadsIcon),
|
||||
completed: false,
|
||||
onClick: () => {
|
||||
if (steps[0].completed) return
|
||||
minimize.value = true
|
||||
|
||||
router.push({ name: 'Leads' })
|
||||
},
|
||||
},
|
||||
@ -41,9 +39,7 @@ const steps = reactive([
|
||||
icon: markRaw(InviteIcon),
|
||||
completed: false,
|
||||
onClick: () => {
|
||||
if (steps[1].completed) return
|
||||
minimize.value = true
|
||||
|
||||
showSettings.value = true
|
||||
activeSettingsPage.value = 'Invite Members'
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user