Skip to content

Commit

Permalink
💄 UserMenu >> Adding settings button.
Browse files Browse the repository at this point in the history
  • Loading branch information
borsTiHD committed Aug 6, 2021
1 parent 569fb68 commit 82063b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/client/components/display/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
<user-avatar />
<p class="text-caption mt-1">{{ $auth.loggedIn ? $auth.user.email : 'currently not logged in' }}</p>
<v-divider class="my-3" />
<v-btn
depressed
rounded
text
@click="openSettings"
>
Settings
</v-btn>
<v-divider class="my-3" />
<v-btn
depressed
rounded
Expand Down Expand Up @@ -93,6 +102,9 @@ export default {
async userLogout() {
console.log('[Logout] -> User logout.')
await this.$auth.logout(/* .... */)
},
openSettings() {
this.$router.push('/settings')
}
}
}
Expand Down

0 comments on commit 82063b0

Please sign in to comment.