mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-14 20:27:59 +00:00
Add initial admin page with update feature
This commit is contained in:
@@ -21,7 +21,9 @@
|
||||
<v-list-item-group
|
||||
v-model="group"
|
||||
>
|
||||
<v-list-item>
|
||||
<v-list-item
|
||||
@click="home"
|
||||
>
|
||||
<v-list-item-icon>
|
||||
<v-icon>mdi-home</v-icon>
|
||||
</v-list-item-icon>
|
||||
@@ -42,7 +44,6 @@
|
||||
<v-list-item>
|
||||
<v-switch
|
||||
v-model="$vuetify.theme.dark"
|
||||
inset
|
||||
label="Dark Mode"
|
||||
/>
|
||||
</v-list-item>
|
||||
@@ -61,6 +62,12 @@ export default {
|
||||
group: null
|
||||
}),
|
||||
methods: {
|
||||
home () {
|
||||
this.$router.push('/')
|
||||
},
|
||||
admin () {
|
||||
this.$router.push('/admin')
|
||||
},
|
||||
logout () {
|
||||
this.$http.get('https://localhost:3000/logout')
|
||||
.then(response => {
|
||||
|
||||
Reference in New Issue
Block a user