This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user