pleroma-fe/src/components/side_drawer/side_drawer.js

22 lines
447 B
JavaScript
Raw Normal View History

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