Skip to content

Commit

Permalink
move logout button to the bottom of the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBout committed Apr 25, 2024
1 parent b13c118 commit b1c3681
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/src/components/Sidebar.vue
Expand Up @@ -4,17 +4,6 @@
<i class="material-icons">person</i>
<span>{{ user.username }}</span>
</button>
<button
v-if="canLogout"
@click="logout"
class="action"
id="logout"
:aria-label="$t('sidebar.logout')"
:title="$t('sidebar.logout')"
>
<i class="material-icons">exit_to_app</i>
<span>{{ $t("sidebar.logout") }}</span>
</button>
<template v-if="isLoggedIn">
<button
class="action"
Expand Down Expand Up @@ -59,6 +48,17 @@
<span>{{ $t("sidebar.settings") }}</span>
</button>
</div>
<button
v-if="canLogout"
@click="logout"
class="action"
id="logout"
:aria-label="$t('sidebar.logout')"
:title="$t('sidebar.logout')"
>
<i class="material-icons">exit_to_app</i>
<span>{{ $t("sidebar.logout") }}</span>
</button>
</template>
<template v-else>
<router-link
Expand Down

0 comments on commit b1c3681

Please sign in to comment.