Ghost/ghost/admin/app/controllers/application.js

29 lines
680 B
JavaScript
Raw Normal View History

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