0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/controllers/application.js
2015-05-24 01:42:59 -05:00

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');
}
}
});