diff --git a/app/assets/javascripts/admin/addon/controllers/admin-user-index.js b/app/assets/javascripts/admin/addon/controllers/admin-user-index.js index d1fac2a80d3..0eb43bd5bd8 100644 --- a/app/assets/javascripts/admin/addon/controllers/admin-user-index.js +++ b/app/assets/javascripts/admin/addon/controllers/admin-user-index.js @@ -374,7 +374,12 @@ export default class AdminUserIndexController extends Controller.extend( @action disableSecondFactor() { - return this.model.disableSecondFactor(); + this.dialog.yesNoConfirm({ + message: I18n.t("admin.user.disable_second_factor_confirm"), + didConfirm: () => { + return this.model.disableSecondFactor(); + }, + }); } @action diff --git a/app/assets/javascripts/admin/addon/templates/user-index.hbs b/app/assets/javascripts/admin/addon/templates/user-index.hbs index 6244c0f7022..b1a5ac21a9b 100644 --- a/app/assets/javascripts/admin/addon/templates/user-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/user-index.hbs @@ -230,7 +230,7 @@ {{/if}} -