Skip to content

Commit

Permalink
Merge pull request #722 from webitel/feature/chat-ai-config
Browse files Browse the repository at this point in the history
feature: chat ai config done [WTEL-4641]
  • Loading branch information
VladimirBeria authored Jul 18, 2024
2 parents e6dc091 + 9711239 commit 6743dae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@
@input="inputHandler"
/>
</div>
<wt-input
v-if="displayedConfigurationType.string"
:label="$tc('vocabulary.values', 1)"
:v="v$.itemInstance.value"
:value="itemInstance.value"
required
@input="setItemProp({ prop: 'value', value: $event })"
/>
</div>
</form>
</template>
Expand Down Expand Up @@ -144,6 +152,13 @@ export default {
},
};
}
const defaultStringConfig = {
itemInstance: {
value: {
required,
},
},
};
switch (this.itemInstance.name) {
case EngineSystemSettingName.EnableOmnichannel:
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const ConfigurationValueTypes = Object.freeze({
[EngineSystemSettingName.SchemeVersionLimit]: 'number',
[EngineSystemSettingName.SearchNumberLength]: 'number',
[EngineSystemSettingName.ExportSettings]: 'select',
[EngineSystemSettingName.ChatAiConnection]: 'string',
},
);

Expand Down

0 comments on commit 6743dae

Please sign in to comment.