Skip to content

Commit b677f0d

Browse files
fix: Fix share prologue
1 parent 66bcd1d commit b677f0d

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

ui/src/components/ai-chat/component/prologue-content/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
:send-message="sendMessage"
1919
reasoning_content=""
2020
:type="type"
21+
:selection="selection"
2122
></MdRenderer>
2223
</el-card>
2324
</div>
@@ -34,6 +35,7 @@ const props = defineProps<{
3435
available: boolean
3536
type: 'log' | 'ai-chat' | 'debug-ai-chat' | 'share'
3637
sendMessage: (question: string, other_params_data?: any, chat?: chatType) => void
38+
selection?: boolean
3739
}>()
3840
3941
const showAvatar = computed(() => {

ui/src/components/ai-chat/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
:application="applicationDetails"
3737
:available="available"
3838
:send-message="sendMessage"
39+
v-if="!selection"
3940
></PrologueContent>
4041
<el-checkbox-group v-model="multipleSelectionChat" @change="handleCheckedChatChange">
4142
<template v-for="(item, index) in chatList" :key="index">

ui/src/views/application/component/AddKnowledgeDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
:width="400"
6565
popper-style="--el-popover-border-radius:8px;--el-popover-padding:16px 16px 0"
6666
:persistent="false"
67+
:show-after="500"
6768
>
6869
<template #reference>
6970
<CardCheckbox

ui/src/views/chat/component/HistoryPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<el-dropdown-menu>
8989
<el-dropdown-item
9090
@click.stop="shareHandle()"
91-
:disabled="currentChatId !== row.id && chat_loading"
91+
:disabled="currentChatId !== row.id || chat_loading"
9292
>
9393
<AppIcon iconName="app-share" class="color-secondary"></AppIcon>
9494
{{ $t('chat.share') }}

0 commit comments

Comments
 (0)