open-vault/ui/app/components/menu-sidebar.js

16 lines
312 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['column', 'is-sidebar'],
classNameBindings: ['isActive:is-active'],
isActive: false,
actions: {
openMenu() {
this.set('isActive', true);
},
closeMenu() {
this.set('isActive', false);
},
},
});