Skip to content

Commit

Permalink
Stop validation error notification stack
Browse files Browse the repository at this point in the history
closes #3383
- Calls closePassive() if a new validation error is thrown to display
only the latest validation error
  • Loading branch information
Felix Rieseberg committed Jul 30, 2014
1 parent e4134cc commit 01ee336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/client/controllers/forgotten.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ var ForgottenController = Ember.Controller.extend(ValidationEngine, {
self.transitionToRoute('signin');
}).catch(function (resp) {
self.toggleProperty('submitting');
self.notifications.closePassive();
self.notifications.showAPIError(resp, 'There was a problem logging in, please try again.');
});
}).catch(function (errors) {
self.toggleProperty('submitting');
self.notifications.closePassive();
self.notifications.showErrors(errors);
});
}
Expand Down

0 comments on commit 01ee336

Please sign in to comment.