works but hacky
This commit is contained in:
commit
67263cde05
24 changed files with 260 additions and 191 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue