Skip to content

Commit 3a38f3d

Browse files
committed
Update Layout.vue
1 parent 35a744c commit 3a38f3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Layout.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<v-btn flat>Docs</v-btn>
4545
<v-btn flat>Github</v-btn>
4646
<v-btn flat v-if="$auth.user()" @click="logout()">SignOut</v-btn>
47+
<v-btn flat v-else @click="login()">Login</v-btn>
4748
</v-toolbar-items>
4849
</v-toolbar>
4950
<v-content>
@@ -78,6 +79,9 @@ export default {
7879
this.$auth.logout().then(() => {
7980
this.$router.push('/login')
8081
})
82+
},
83+
login () {
84+
this.$router.push('/login')
8185
}
8286
},
8387
components: {

0 commit comments

Comments
 (0)