mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-14 04:14:02 +00:00
Start dockerizing, fix app bar bugs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user