You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
potato-launcher/src/js/mixins/sidebarForm.js

38 lines
645 B

/**
* mixin extends sidebarForm
*
* @author Björn Hase
* @license hhttps://www.gnu.org/licenses/gpl-3.0.en.html GPL-3
* @link https://gitea.node001.net/HerrHase/potato-launcher.git
*
*/
export default {
/**
* close current sidebar
*
*
*/
handleClose() {
this.state.open = false
this.update()
},
/**
* getting css classes for sidebar
*
*
*/
getCssClasses() {
const classes = [
'sidebar'
]
if (this.state.open === true) {
classes.push('sidebar--open')
}
return classes.join(' ')
}
}