FIX: password reset UI shares state on all profile pages and stops working after first use
This commit is contained in:
parent
c423ce6333
commit
0548523e8b
|
@ -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: {
|
||||
|
|
|
@ -8,6 +8,7 @@ export default RestrictedUserRoute.extend({
|
|||
},
|
||||
|
||||
setupController(controller, user) {
|
||||
controller.reset();
|
||||
controller.setProperties({
|
||||
model: user,
|
||||
newNameInput: user.get('name')
|
||||
|
|
Loading…
Reference in New Issue