fix(ui) sidebar auth state button switches

This commit is contained in:
ArneBo 2025-01-05 16:14:10 +01:00 committed by upsiflu
parent d957d16042
commit eef1052676
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,9 @@ const logoUrl = computed(() => store.state.auth.authenticated ? 'library.index'
</Link>
<Layout nav no-gap flex style="align-items: center;">
<Link to="/manage/settings"
<Link
v-if="store.state.auth.availablePermissions['settings'] || store.state.auth.availablePermissions['moderation']"
to="/manage/settings"
round
icon="bi-wrench"
ghost
@ -57,6 +59,7 @@ const logoUrl = computed(() => store.state.auth.authenticated ? 'library.index'
</Link>
<Button
v-if="store.state.auth.authenticated"
align-self="center"
round
icon="bi-upload"