added login stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-12-06 01:43:47 +01:00
parent 0a09a1b0b7
commit 633f2af5eb
11 changed files with 255 additions and 33 deletions

View File

@@ -13,7 +13,7 @@
</md-list-item>
<md-list-item>
<md-button class="md-raised md-accent">Logout</md-button>
<md-button class="md-raised md-accent" @click="performLogout">Logout</md-button>
</md-list-item>
</md-list>
@@ -23,7 +23,14 @@
<script>
export default {
name: "WorkspaceDrawerContent"
name: "WorkspaceDrawerContent",
methods: {
performLogout() {
this.$store.dispatch("performLogout").then(() => {
this.$router.push({name: "Welcome"})
})
}
}
}
</script>