diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue index d80f26535..034d5a6c9 100644 --- a/ui/src/components/ai-chat/KnowledgeSource.vue +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -88,11 +88,15 @@ const props = defineProps({ } }) -const emit = defineEmits(['openExecutionDetail']) +const emit = defineEmits(['openExecutionDetail', 'openParagraph']) const ParagraphSourceDialogRef = ref() const ExecutionDetailDialogRef = ref() function openParagraph(row: any, id?: string) { + if (props.executionIsRightPanel) { + emit('openParagraph') + return + } ParagraphSourceDialogRef.value.open(row, id) } function openExecutionDetail(row: any) { diff --git a/ui/src/components/ai-chat/ParagraphSourceDialog.vue b/ui/src/components/ai-chat/ParagraphSourceDialog.vue index dcccbf440..95a320282 100644 --- a/ui/src/components/ai-chat/ParagraphSourceDialog.vue +++ b/ui/src/components/ai-chat/ParagraphSourceDialog.vue @@ -10,26 +10,7 @@ :close-on-press-escape="false" >