fix(ui): usermenu

This commit is contained in:
ArneBo 2025-01-03 14:34:41 +01:00 committed by upsiflu
parent a428f00afe
commit 2d5d7ee2ad
1 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ const labels = computed(() => ({
{{ labels.notifications }}
</Link>
</PopoverItem>
<PopoverItem v-if="store.state.auth.authenticated && store.state.auth.profile?.avatar?.urls.medium_square_crop">
<PopoverItem v-if="store.state.auth.authenticated">
<Link
:to="{name: 'profile.overview', params: { username: store.state.auth.username },}"
icon="bi-person-fill"
@ -78,7 +78,7 @@ const labels = computed(() => ({
{{ labels.profile }}
</Link>
</PopoverItem>
<PopoverItem v-if="store.state.auth.authenticated && store.state.auth.profile?.avatar?.urls.medium_square_crop">
<PopoverItem v-if="store.state.auth.authenticated">
<Link
:to="{ path: '/settings' }"
icon="bi-gear-fill"
@ -86,7 +86,7 @@ const labels = computed(() => ({
{{ labels.settings }}
</Link>
</PopoverItem>
<hr v-if="store.state.auth.authenticated && store.state.auth.profile?.avatar?.urls.medium_square_crop"/>
<hr v-if="store.state.auth.authenticated"/>
<PopoverItem @click="store.commit('ui/toggleModal', 'languages')"
:aria-pressed="store.state.ui.modalsOpen.has('languages') || undefined"
>