From f184ea12202ea67c2c549ec41a5fb561fd052d15 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Fri, 10 May 2024 16:42:09 +0300 Subject: [PATCH] feature: add enable-2fa param in configuration page[WTEL-4431] --- package-lock.json | 12 ++++++------ package.json | 2 +- .../configuration/components/configuration-popup.vue | 6 ++++++ .../configuration/utils/configurationValueTypes.js | 2 ++ 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 57d1f2f2e..3b4a6b9d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "web-client", - "version": "24.02.2", + "version": "24.02.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "web-client", - "version": "24.02.2", + "version": "24.02.3", "dependencies": { "@vue/compat": "^3.2.47", "@vuelidate/core": "^2.0.0", @@ -33,7 +33,7 @@ "vue-router": "^4.2.5", "vue2-dropzone": "^3.6.0", "vuex": "^4.1.0", - "webitel-sdk": "^24.2.9" + "webitel-sdk": "^24.2.12" }, "devDependencies": { "@vitejs/plugin-vue": "^4.4.0", @@ -8526,9 +8526,9 @@ } }, "node_modules/webitel-sdk": { - "version": "24.2.9", - "resolved": "https://registry.npmjs.org/webitel-sdk/-/webitel-sdk-24.2.9.tgz", - "integrity": "sha512-R9Clg4m9d1nPkcc4boIQCJZ/yvtC7YPH7bRizej/QDQSM3fqJFozS0xMxJHEZKbF77QyQN95Yt6VXMXjJjfOFQ==", + "version": "24.2.12", + "resolved": "https://registry.npmjs.org/webitel-sdk/-/webitel-sdk-24.2.12.tgz", + "integrity": "sha512-5O0klvepANTe9upNrEgXoKsbCVO2jYEhMFUrieY+mh/sgcs4k4tIW/vwgOalFDRIHtlDeiHUZkhZTokpIJ7jTQ==", "dependencies": { "@types/webrtc": "~0.0.41", "deep-copy": "1.4.2", diff --git a/package.json b/package.json index 2968deced..7d89a7392 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "vue-router": "^4.2.5", "vue2-dropzone": "^3.6.0", "vuex": "^4.1.0", - "webitel-sdk": "^24.2.9" + "webitel-sdk": "^24.2.12" }, "devDependencies": { "@vitejs/plugin-vue": "^4.4.0", diff --git a/src/modules/system/modules/configuration/components/configuration-popup.vue b/src/modules/system/modules/configuration/components/configuration-popup.vue index 06968dca4..37de2eb56 100644 --- a/src/modules/system/modules/configuration/components/configuration-popup.vue +++ b/src/modules/system/modules/configuration/components/configuration-popup.vue @@ -123,9 +123,15 @@ export default { case EngineSystemSettingName.AmdCancelNotHuman: { return defaultBooleanConfig; } + case EngineSystemSettingName.Enable2fa: { + return defaultBooleanConfig; + } case EngineSystemSettingName.MemberChunkSize: { return defaultNumberConfig; } + case EngineSystemSettingName.SchemeVersionLimit: { + return defaultNumberConfig; + } default: { return {}; } diff --git a/src/modules/system/modules/configuration/utils/configurationValueTypes.js b/src/modules/system/modules/configuration/utils/configurationValueTypes.js index 749331132..e753ac910 100644 --- a/src/modules/system/modules/configuration/utils/configurationValueTypes.js +++ b/src/modules/system/modules/configuration/utils/configurationValueTypes.js @@ -3,7 +3,9 @@ import { EngineSystemSettingName } from 'webitel-sdk'; const ConfigurationValueTypes = Object.freeze({ [EngineSystemSettingName.EnableOmnichannel]: 'boolean', [EngineSystemSettingName.AmdCancelNotHuman]: 'boolean', + [EngineSystemSettingName.Enable2fa]: 'boolean', [EngineSystemSettingName.MemberChunkSize]: 'number', + [EngineSystemSettingName.SchemeVersionLimit]: 'number', }, );