1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 20:50:28 +02:00

Properly handle errors in change email modal

This commit is contained in:
Toby Zerner
2015-09-29 15:19:06 +09:30
parent b39a991940
commit 6463d912a9

View File

@@ -89,8 +89,9 @@ export default class ChangeEmailModal extends Modal {
this.success = true; this.success = true;
m.redraw(); m.redraw();
}, },
() => { response => {
this.loading = false; this.loading = false;
this.handleErrors(response);
} }
); );
} }