From 971123936718ae7da24c8ccbeab7e7d8037b721b Mon Sep 17 00:00:00 2001 From: volodymyr Date: Thu, 18 Jul 2024 13:44:04 +0300 Subject: [PATCH] feature: chat ai config done [WTEL-4641] --- .../components/configuration-popup.vue | 17 +++++++++++++++++ .../utils/configurationValueTypes.js | 1 + 2 files changed, 18 insertions(+) diff --git a/src/modules/system/modules/configuration/components/configuration-popup.vue b/src/modules/system/modules/configuration/components/configuration-popup.vue index 450090a62..61b15720e 100644 --- a/src/modules/system/modules/configuration/components/configuration-popup.vue +++ b/src/modules/system/modules/configuration/components/configuration-popup.vue @@ -61,6 +61,14 @@ @input="inputHandler" /> + @@ -144,6 +152,13 @@ export default { }, }; } + const defaultStringConfig = { + itemInstance: { + value: { + required, + }, + }, + }; switch (this.itemInstance.name) { case EngineSystemSettingName.EnableOmnichannel: @@ -160,6 +175,8 @@ export default { return deepmerge(defaults, defaultNumberConfig); case EngineSystemSettingName.ExportSettings: return deepmerge(defaults, defaultSelectConfig); + case EngineSystemSettingName.ChatAiConnection: + return deepmerge(defaults, defaultStringConfig); default: return defaults; } diff --git a/src/modules/system/modules/configuration/utils/configurationValueTypes.js b/src/modules/system/modules/configuration/utils/configurationValueTypes.js index c4b35f3cc..8c3bdc6f8 100644 --- a/src/modules/system/modules/configuration/utils/configurationValueTypes.js +++ b/src/modules/system/modules/configuration/utils/configurationValueTypes.js @@ -8,6 +8,7 @@ const ConfigurationValueTypes = Object.freeze({ [EngineSystemSettingName.SchemeVersionLimit]: 'number', [EngineSystemSettingName.SearchNumberLength]: 'number', [EngineSystemSettingName.ExportSettings]: 'select', + [EngineSystemSettingName.ChatAiConnection]: 'string', }, );