Skip to content

Commit 01ee336

Browse files
author
Felix Rieseberg
committed
Stop validation error notification stack
closes #3383 - Calls closePassive() if a new validation error is thrown to display only the latest validation error
1 parent e4134cc commit 01ee336

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/client/controllers/forgotten.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ var ForgottenController = Ember.Controller.extend(ValidationEngine, {
3030
self.transitionToRoute('signin');
3131
}).catch(function (resp) {
3232
self.toggleProperty('submitting');
33+
self.notifications.closePassive();
3334
self.notifications.showAPIError(resp, 'There was a problem logging in, please try again.');
3435
});
3536
}).catch(function (errors) {
3637
self.toggleProperty('submitting');
38+
self.notifications.closePassive();
3739
self.notifications.showErrors(errors);
3840
});
3941
}

0 commit comments

Comments
 (0)