From 9471089b2e4bcb90457b572fb13adfecb65d8468 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Mon, 8 Apr 2024 22:57:20 +0530 Subject: [PATCH] fix(ContextChat): update inputs on selective context checkbox change Signed-off-by: Anupam Kumar --- src/components/AssistantFormInputs.vue | 6 ++++-- src/components/ContextChat/ContextChatInputForm.vue | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/AssistantFormInputs.vue b/src/components/AssistantFormInputs.vue index 4aae29b8..1841457f 100644 --- a/src/components/AssistantFormInputs.vue +++ b/src/components/AssistantFormInputs.vue @@ -58,10 +58,10 @@
- + {{ t('assistant', 'Selective context') }} - +
@@ -179,6 +179,8 @@ export default { this.onUpdateStt() } else if (this.selectedTaskTypeId === 'OCP\\TextToImage\\Task') { this.onUpdateTti() + } else if (this.selectedTaskTypeId === 'OCA\\ContextChat\\TextProcessing\\ContextChatTaskType') { + this.onUpdateContextChat() } else { this.onUpdate() } diff --git a/src/components/ContextChat/ContextChatInputForm.vue b/src/components/ContextChat/ContextChatInputForm.vue index 9c84840a..d3494428 100644 --- a/src/components/ContextChat/ContextChatInputForm.vue +++ b/src/components/ContextChat/ContextChatInputForm.vue @@ -190,6 +190,8 @@ export default { }, }, + emits: ['update:sccData'], + data() { return { ScopeType: _ScopeType,