works but hacky

This commit is contained in:
shpuld 2018-12-20 22:20:04 +02:00
commit 67263cde05
24 changed files with 260 additions and 191 deletions

View file

@ -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()
}
}
}
}