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)
This commit is contained in:
balibabu
2026-04-13 21:06:41 +08:00
committed by GitHub
parent c7ce062ea8
commit 9a38af7cbf
2 changed files with 4 additions and 1 deletions

View File

@ -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 = ({
<NotebookText className="size-4" />
</ToggleGroupItem>
)}
{!!attachment?.doc_id && (
{!!attachment?.doc_id && !isShare && (
<ToggleGroupItem
value="g"
onClick={async () => {

View File

@ -246,6 +246,7 @@ function MessageItem({
showLoudspeaker={showLoudspeaker}
showLog={showLog}
attachment={item.attachment}
isShare={isShare}
></AssistantGroupButton>
)}
{!isShare && (