open-vault/ui/app/components/nav-header.js

16 lines
348 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
export default Component.extend({
'data-test-navheader': true,
tagName: 'header',
navDrawerOpen: false,
actions: {
toggleNavDrawer(isOpen) {
if (isOpen !== undefined) {
return this.set('navDrawerOpen', isOpen);
}
this.toggleProperty('navDrawerOpen');
},
},
});