A platform for community discussion. Free, open, simple.
UX: Don't disable submit button before transitioning in 2FA flow.
Guo Xiang Tan5e60f6b533bc
diff --git a/app/assets/javascripts/discourse/controllers/preferences/second-factor.js.es6 b/app/assets/javascripts/discourse/controllers/preferences/second-factor.js.es6index 990d2eb6f9b..d66ee78360f 100644--- a/app/assets/javascripts/discourse/controllers/preferences/second-factor.js.es6+++ b/app/assets/javascripts/discourse/controllers/preferences/second-factor.js.es6@@ -26,14 +26,17 @@ export default Ember.Controller.extend({.then(response => {if (response.error) {this.set('errorMessage', response.error);+ this.set('loading', false);return;}this.set('errorMessage',null);DiscourseURL.redirectTo(userPath(`${this.get('content').username.toLowerCase()}/preferences`));})- .catch(popupAjaxError)- .finally(() => this.set('loading', false));+ .catch(error => {+ this.set('loading', false);+ popupAjaxError(error);+ });},actions: {