mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
adbd32c51d
closes #3548 - Add error to hidenav, removes menubar from error screen. - Wrap atob() in a try/catch - Added regex to try and validate if params.token at least looks like base64
18 lines
450 B
JavaScript
18 lines
450 B
JavaScript
var ApplicationController = Ember.Controller.extend({
|
|
hideNav: Ember.computed.match('currentPath', /(error|signin|signup|setup|forgotten|reset)/),
|
|
|
|
topNotificationCount: 0,
|
|
|
|
actions: {
|
|
toggleMenu: function () {
|
|
this.toggleProperty('showMenu');
|
|
},
|
|
|
|
topNotificationChange: function (count) {
|
|
this.set('topNotificationCount', count);
|
|
}
|
|
}
|
|
});
|
|
|
|
export default ApplicationController;
|