From 9a38af7cbfa8a9f99bf64611ea7084bbe423d8dc Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 13 Apr 2026 21:06:41 +0800 Subject: [PATCH] Feat: Hide the download button embedded in the agent page. (#14083) ### What problem does this PR solve? Feat: Hide the download button embedded in the agent page. ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/components/next-message-item/group-button.tsx | 4 +++- web/src/components/next-message-item/index.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/components/next-message-item/group-button.tsx b/web/src/components/next-message-item/group-button.tsx index 6c0620f75..652ef3392 100644 --- a/web/src/components/next-message-item/group-button.tsx +++ b/web/src/components/next-message-item/group-button.tsx @@ -39,6 +39,7 @@ interface IProps { doc_id: string; format: string; }; + isShare?: boolean; } export const AssistantGroupButton = ({ @@ -50,6 +51,7 @@ export const AssistantGroupButton = ({ showLoudspeaker = true, showLog = true, attachment, + isShare, }: IProps) => { const { visible, hideModal, showModal, onFeedbackOk, loading } = useSendFeedback(messageId); @@ -115,7 +117,7 @@ export const AssistantGroupButton = ({ )} - {!!attachment?.doc_id && ( + {!!attachment?.doc_id && !isShare && ( { diff --git a/web/src/components/next-message-item/index.tsx b/web/src/components/next-message-item/index.tsx index 853d87adb..b9e1b3232 100644 --- a/web/src/components/next-message-item/index.tsx +++ b/web/src/components/next-message-item/index.tsx @@ -246,6 +246,7 @@ function MessageItem({ showLoudspeaker={showLoudspeaker} showLog={showLog} attachment={item.attachment} + isShare={isShare} > )} {!isShare && (