Start dockerizing, fix app bar bugs

This commit is contained in:
Kevin Thomas
2021-11-09 19:14:58 -08:00
parent d52aea3fd9
commit 8c6c4a00cc
7 changed files with 28 additions and 7 deletions

View File

@@ -3,7 +3,8 @@ export default {
data: () => ({
drawyer: false,
isAdmin: false
isAdmin: false,
loggedIn: false
}),
methods: {
home () {
@@ -24,10 +25,12 @@ export default {
})
},
getCurrentUser () {
this.loggedIn = false
this.drawyer = true
this.$http.get('/users/current')
.then(response => {
if (response.status === 200) {
this.loggedIn = true
this.isAdmin = response.data.user.isAdmin
this.$vuetify.theme.dark = response.data.user.darkMode
}