Add initial admin page with update feature

This commit is contained in:
Kevin Thomas
2021-08-05 23:39:07 -07:00
parent 790c1fda22
commit d0fa884d83
8 changed files with 197 additions and 6 deletions

View File

@@ -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 => {