mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Don't disable submit button before transitioning in 2FA flow.
This commit is contained in:
@@ -26,14 +26,17 @@ export default Ember.Controller.extend({
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
this.set('errorMessage', response.error);
|
this.set('errorMessage', response.error);
|
||||||
|
this.set('loading', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set('errorMessage',null);
|
this.set('errorMessage',null);
|
||||||
DiscourseURL.redirectTo(userPath(`${this.get('content').username.toLowerCase()}/preferences`));
|
DiscourseURL.redirectTo(userPath(`${this.get('content').username.toLowerCase()}/preferences`));
|
||||||
})
|
})
|
||||||
.catch(popupAjaxError)
|
.catch(error => {
|
||||||
.finally(() => this.set('loading', false));
|
this.set('loading', false);
|
||||||
|
popupAjaxError(error);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user