mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
73be0780b9
Refs #3160 - gh-notifications component now takes an optional notify parameter. If present it will be invoked as an action when a notification is added or removed. - Add a data-notification-count attribute to the main container that tracks the number of "top" notification messages that are currently being shown.
18 lines
444 B
JavaScript
18 lines
444 B
JavaScript
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;
|