mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
d743e466b5
References #3810 With GUI2, there's now a number of places to open the mobile navigation menu. This handles those clicks.
19 lines
482 B
JavaScript
19 lines
482 B
JavaScript
var ApplicationController = Ember.Controller.extend({
|
|
hideNav: Ember.computed.match('currentPath', /(error|signin|signup|setup|forgotten|reset)/),
|
|
|
|
topNotificationCount: 0,
|
|
showGlobalMobileNav: false,
|
|
|
|
actions: {
|
|
toggleMenu: function () {
|
|
this.toggleProperty('showMenu');
|
|
},
|
|
|
|
topNotificationChange: function (count) {
|
|
this.set('topNotificationCount', count);
|
|
}
|
|
}
|
|
});
|
|
|
|
export default ApplicationController;
|