diff options
| author | shpuld <shp@cock.li> | 2018-12-22 17:32:07 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2018-12-22 17:32:07 +0200 |
| commit | 4836c8ac74569668001f1adc39fe84377ddb7dba (patch) | |
| tree | ac00848b441b66925b2719295e789531ac7ae460 /src/components/side_drawer/side_drawer.js | |
| parent | 67263cde05cacd6bf2a8941cce4c562ef88977e4 (diff) | |
Add some more routes to side drawer
Diffstat (limited to 'src/components/side_drawer/side_drawer.js')
| -rw-r--r-- | src/components/side_drawer/side_drawer.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js index b1b7701c..6541077b 100644 --- a/src/components/side_drawer/side_drawer.js +++ b/src/components/side_drawer/side_drawer.js @@ -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') } } } |
