From 01ee33643c09d08b94d8e5cddd009e9d6eab3658 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 29 Jul 2014 16:13:56 -0700 Subject: [PATCH] Stop validation error notification stack closes #3383 - Calls closePassive() if a new validation error is thrown to display only the latest validation error --- core/client/controllers/forgotten.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/client/controllers/forgotten.js b/core/client/controllers/forgotten.js index df5e1ff86d..4b6a4ea935 100644 --- a/core/client/controllers/forgotten.js +++ b/core/client/controllers/forgotten.js @@ -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); }); }