FIX: password reset UI shares state on all profile pages and stops working after first use

This commit is contained in:
Neil Lalonde 2016-04-20 14:51:46 -04:00
parent c423ce6333
commit 0548523e8b
2 changed files with 7 additions and 0 deletions

View file

@ -102,6 +102,12 @@ export default Ember.Controller.extend(CanCheckEmails, {
return isSaving ? I18n.t('saving') : I18n.t('save');
},
reset() {
this.setProperties({
passwordProgress: null
});
},
passwordProgress: null,
actions: {

View file

@ -8,6 +8,7 @@ export default RestrictedUserRoute.extend({
},
setupController(controller, user) {
controller.reset();
controller.setProperties({
model: user,
newNameInput: user.get('name')