mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
28 lines
680 B
JavaScript
28 lines
680 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Controller.extend({
|
|
// jscs: disable
|
|
signedOut: Ember.computed.match('currentPath', /(signin|signup|setup|reset)/),
|
|
// jscs: enable
|
|
|
|
topNotificationCount: 0,
|
|
showNavMenu: false,
|
|
showSettingsMenu: false,
|
|
|
|
autoNav: false,
|
|
|
|
actions: {
|
|
topNotificationChange: function (count) {
|
|
this.set('topNotificationCount', count);
|
|
},
|
|
|
|
closeNavMenu: function () {
|
|
this.get('dropdown').closeDropdowns();
|
|
this.set('showNavMenu', false);
|
|
},
|
|
|
|
navMenuToggleMaximise: function () {
|
|
this.toggleProperty('autoNav');
|
|
}
|
|
}
|
|
});
|