Ghost/core/client/controllers/application.js

18 lines
444 B
JavaScript
Raw Normal View History

var ApplicationController = Ember.Controller.extend({
hideNav: Ember.computed.match('currentPath', /(signin|signup|setup|forgotten|reset)/),
topNotificationCount: 0,
actions: {
toggleMenu: function () {
this.toggleProperty('showMenu');
},
topNotificationChange: function (count) {
this.set('topNotificationCount', count);
}
}
});
export default ApplicationController;