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:
parent
a7415d38c0
commit
61cf8690dd
1 changed files with 2 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue