0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/client/app/controllers/application.js

29 lines
680 B
JavaScript
Raw Normal View History

2015-02-12 23:22:32 -05:00
import Ember from 'ember';
2015-05-24 00:47:23 -05:00
export default Ember.Controller.extend({
// jscs: disable
2015-05-21 22:47:51 -05:00
signedOut: Ember.computed.match('currentPath', /(signin|signup|setup|reset)/),
// jscs: enable
topNotificationCount: 0,
2015-05-24 00:47:23 -05:00
showNavMenu: false,
showSettingsMenu: false,
2015-05-24 00:47:23 -05:00
autoNav: false,
actions: {
topNotificationChange: function (count) {
this.set('topNotificationCount', count);
2015-05-24 00:47:23 -05:00
},
closeNavMenu: function () {
this.get('dropdown').closeDropdowns();
this.set('showNavMenu', false);
},
navMenuToggleMaximise: function () {
this.toggleProperty('autoNav');
}
}
});