Add some more routes to side drawer

This commit is contained in:
shpuld 2018-12-22 17:32:07 +02:00
parent 67263cde05
commit 4836c8ac74
5 changed files with 34 additions and 12 deletions
src/components/side_drawer

View file

@ -1,5 +1,5 @@
const SideDrawer = {
props: [ 'activatePanel', 'closed', 'clickoutside' ],
props: [ 'activatePanel', 'closed', 'clickoutside', 'logout' ],
computed: {
currentUser () {
return this.$store.state.users.currentUser
@ -14,6 +14,10 @@ const SideDrawer = {
if (typeof this.clickoutside === 'function') {
this.clickoutside()
}
},
doLogout () {
this.logout()
this.gotoPanel('timeline')
}
}
}