Ghost/core/client/controllers/application.js
shindakun adbd32c51d Transition to signin with error message on invalid token not 500 error screen
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
2014-08-06 08:08:02 -07:00

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;