Skip to content

Commit

Permalink
fix: add condition if user is authorized to logot listitem in default…
Browse files Browse the repository at this point in the history
… layout
  • Loading branch information
EvgenyWas committed Sep 2, 2024
1 parent 93eec05 commit 7c2016f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,13 @@
:to="link.to"
/>

<VDivider class="my-2" />
<VDivider
v-if="user.authorized"
class="my-2"
/>

<VListItem
v-if="user.authorized"
title="Logout"
prepend-icon="fas fa-sign-out-alt"
href="/logout"
Expand Down Expand Up @@ -220,9 +224,13 @@
:to="link.to"
/>

<VDivider class="my-2" />
<VDivider
v-if="user.authorized"
class="my-2"
/>

<VListItem
v-if="user.authorized"
title="Logout"
prepend-icon="fas fa-sign-out-alt"
href="/logout"
Expand Down

0 comments on commit 7c2016f

Please sign in to comment.