mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
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
2 changed files with 7 additions and 0 deletions
|
@ -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 a new issue