From d7c2cd8d2a1eee4eb67ffcab231ad852176fbea8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 13 Aug 2021 11:19:27 +0300 Subject: [PATCH] fix --- client/src/views/user/modals/security.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/views/user/modals/security.js b/client/src/views/user/modals/security.js index 7c135a2b9b..e05b90bc57 100644 --- a/client/src/views/user/modals/security.js +++ b/client/src/views/user/modals/security.js @@ -151,11 +151,11 @@ define('views/user/modals/security', ['views/modal', 'model'], function (Dep, Mo actionReset: function () { this.confirm(this.translate('security2FaResetConfimation', 'messages', 'User'), () => { - this.actionApply(true); + this.actionApply(dialog, true); }); }, - actionApply: function (reset) { + actionApply: function (dialog, reset) { var data = this.getView('record').processFetch(); if (!data) { @@ -230,7 +230,6 @@ define('views/user/modals/security', ['views/modal', 'model'], function (Dep, Mo } this.processSave(); - }, processSave: function () { @@ -243,7 +242,7 @@ define('views/user/modals/security', ['views/modal', 'model'], function (Dep, Mo Espo.Ui.success(this.translate('Done')); }) - .fail(() => this.showButton('apply')); + .catch(() => this.showButton('apply')); }, });