58dfd8aa68
* add permissions service * start template helper * match prefixed paths * gate sidebar links * land on first page user has access to * show nav when user first logs in * clear paths when user logs out * add tests * implement feedback * show all nav items if no policy is found * update onboarding wizard * fix some unrelated tests * add support for namespaces * gate wizard * unstage package and lockfile
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
import Component from '@ember/component';
|
|
export default Component.extend({
|
|
'data-test-navheader': true,
|
|
classNameBindings: 'consoleFullscreen:panel-fullscreen',
|
|
tagName: 'header',
|
|
navDrawerOpen: false,
|
|
consoleFullscreen: false,
|
|
actions: {
|
|
toggleNavDrawer(isOpen) {
|
|
if (isOpen !== undefined) {
|
|
return this.set('navDrawerOpen', isOpen);
|
|
}
|
|
this.toggleProperty('navDrawerOpen');
|
|
},
|
|
},
|
|
});
|