diff options
Diffstat (limited to 'src/components/side_drawer/side_drawer.js')
| -rw-r--r-- | src/components/side_drawer/side_drawer.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js index bf9df753..b1b7701c 100644 --- a/src/components/side_drawer/side_drawer.js +++ b/src/components/side_drawer/side_drawer.js @@ -1,11 +1,19 @@ const SideDrawer = { - props: [ 'activatePanel', 'closed' ], + props: [ 'activatePanel', 'closed', 'clickoutside' ], computed: { currentUser () { return this.$store.state.users.currentUser + } + }, + methods: { + gotoPanel (panel) { + this.activatePanel(panel) + this.clickoutside && this.clickoutside() }, - chat () { - return this.$store.state.chat.channel + clickedOutside () { + if (typeof this.clickoutside === 'function') { + this.clickoutside() + } } } } |
