This commit is contained in:
Yuri Kuznetsov
2021-08-13 11:19:27 +03:00
parent 78814dedd3
commit d7c2cd8d2a
+3 -4
View File
@@ -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'));
},
});