Add some more routes to side drawer
This commit is contained in:
parent
67263cde05
commit
4836c8ac74
5 changed files with 34 additions and 12 deletions
src/components/side_drawer
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue