Skip to content

Commit

Permalink
docs(SettingsToggle): add to user bar when logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Aug 28, 2023
1 parent 5b448a6 commit 6fceb9c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/docs/src/components/app/GitHubLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@
</template>

<template #append>
<v-fade-transition leave-absolute>
<v-icon
:key="app.settings"
:icon="app.settings ? 'mdi-cog' : 'mdi-cog-outline'"
class="me-4"
size="small"
@click="app.settings = !app.settings"
/>
</v-fade-transition>

<v-icon
icon="mdi-logout-variant"
class="me-1"
Expand All @@ -43,6 +53,10 @@
import { useAuth0 } from '@/plugins/auth'
import { useI18n } from 'vue-i18n'
// Stores
import { useAppStore } from '@/store/app'
const app = useAppStore()
const { loginWithPopup, user, logout, isAuthenticated } = useAuth0()
const { t } = useI18n()
Expand Down

0 comments on commit 6fceb9c

Please sign in to comment.