mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
de63f56f68
Closes #4316 - Ember@1.8.0. - Ember-Data@1.0.0-beta.11. - Change templates to use new Ember.Select syntax and other minor cleanup. - Adjust functional tests.
24 lines
635 B
JavaScript
24 lines
635 B
JavaScript
var ApplicationController = Ember.Controller.extend({
|
|
// jscs: disable
|
|
hideNav: Ember.computed.match('currentPath', /(error|signin|signup|setup|forgotten|reset)/),
|
|
// jscs: enable
|
|
|
|
topNotificationCount: 0,
|
|
showGlobalMobileNav: false,
|
|
showSettingsMenu: false,
|
|
|
|
userImageAlt: Ember.computed('session.user.name', function () {
|
|
var name = this.get('session.user.name');
|
|
|
|
return name + '\'s profile picture';
|
|
}),
|
|
|
|
actions: {
|
|
topNotificationChange: function (count) {
|
|
this.set('topNotificationCount', count);
|
|
}
|
|
}
|
|
});
|
|
|
|
export default ApplicationController;
|