16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
|
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);
|
||
|
},
|
||
|
},
|
||
|
});
|