0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Signin error notifications kept from stacking

closes #3375
- Prior to showing error notifications, the signin route now calls
  closePassive().
This commit is contained in:
Felix Rieseberg 2014-07-24 11:16:00 -04:00
parent a7415d38c0
commit 61cf8690dd

View file

@ -10,6 +10,7 @@ var SigninRoute = Ember.Route.extend(styleBody, loadingIndicator, {
},
actions: {
sessionAuthenticationFailed: function (error) {
this.notifications.closePassive();
this.notifications.showError(error.message);
},
sessionAuthenticationSucceeded: function () {
@ -26,6 +27,7 @@ var SigninRoute = Ember.Route.extend(styleBody, loadingIndicator, {
});
},
sessionInvalidationFailed: function (error) {
this.notifications.closePassive();
this.notifications.showError(error.message);
},
sessionInvalidationSucceeded: function () {