mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Clear error alerts in change email modal on success (#2467)
This commit is contained in:
@@ -118,7 +118,10 @@ export default class ChangeEmailModal extends Modal {
|
|||||||
meta: { password: this.password() },
|
meta: { password: this.password() },
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => (this.success = true))
|
.then(() => {
|
||||||
|
this.success = true;
|
||||||
|
this.alertAttrs = null;
|
||||||
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
.then(this.loaded.bind(this));
|
.then(this.loaded.bind(this));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user