2018-12-15 09:13:01 -08:00
|
|
|
const SideDrawer = {
|
2018-12-20 12:20:04 -08:00
|
|
|
props: [ 'activatePanel', 'closed', 'clickoutside' ],
|
2018-12-15 09:13:01 -08:00
|
|
|
computed: {
|
|
|
|
currentUser () {
|
|
|
|
return this.$store.state.users.currentUser
|
2018-12-20 12:20:04 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
gotoPanel (panel) {
|
|
|
|
this.activatePanel(panel)
|
|
|
|
this.clickoutside && this.clickoutside()
|
2018-12-15 09:13:01 -08:00
|
|
|
},
|
2018-12-20 12:20:04 -08:00
|
|
|
clickedOutside () {
|
|
|
|
if (typeof this.clickoutside === 'function') {
|
|
|
|
this.clickoutside()
|
|
|
|
}
|
2018-12-15 09:13:01 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SideDrawer
|