yandere_fe/src/components/side_drawer/side_drawer.js

22 lines
447 B
JavaScript
Raw Normal View History

const SideDrawer = {
2018-12-20 12:20:04 -08:00
props: [ 'activatePanel', 'closed', 'clickoutside' ],
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-20 12:20:04 -08:00
clickedOutside () {
if (typeof this.clickoutside === 'function') {
this.clickoutside()
}
}
}
}
export default SideDrawer