Merge branch 'worktree-agent-a0328c91'
This commit is contained in:
commit
2cab40aa65
2 changed files with 23 additions and 2 deletions
|
|
@ -17,8 +17,13 @@
|
|||
:to="item.path"
|
||||
:class="{ active: isActive(item.path) }"
|
||||
@click="handleNavigate"
|
||||
>{{ item.label }}</NuxtLink
|
||||
>
|
||||
{{ item.label }}
|
||||
<span
|
||||
v-if="item.path === '/member/dashboard' && showOnboardingDot"
|
||||
class="onboarding-dot"
|
||||
/>
|
||||
</NuxtLink>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="sign-out" @click.prevent="handleLogout"
|
||||
|
|
@ -128,9 +133,13 @@ const props = defineProps({
|
|||
const emit = defineEmits(["navigate"]);
|
||||
|
||||
const route = useRoute();
|
||||
const { isAuthenticated, logout } = useAuth();
|
||||
const { isAuthenticated, memberData, logout } = useAuth();
|
||||
const isDev = import.meta.dev;
|
||||
|
||||
const showOnboardingDot = computed(() =>
|
||||
isAuthenticated.value && !memberData.value?.onboarding?.completedAt
|
||||
);
|
||||
|
||||
const handleNavigate = () => {
|
||||
if (props.isMobile) {
|
||||
emit("navigate");
|
||||
|
|
@ -279,4 +288,14 @@ const exploreItems = [
|
|||
.sidebar-meta a {
|
||||
color: var(--candle-dim);
|
||||
}
|
||||
|
||||
.onboarding-dot {
|
||||
display: inline-block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--candle);
|
||||
margin-left: 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
<!-- Dashboard Content -->
|
||||
<template v-else>
|
||||
<OnboardingWidget />
|
||||
|
||||
<ColumnsLayout cols="events-sidebar" :limit="5">
|
||||
<!-- Member Status Banner -->
|
||||
<MemberStatusBanner />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue