mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-27 11:15:59 +08:00
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:
@ -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 () => {
|
||||
|
||||
@ -246,6 +246,7 @@ function MessageItem({
|
||||
showLoudspeaker={showLoudspeaker}
|
||||
showLog={showLog}
|
||||
attachment={item.attachment}
|
||||
isShare={isShare}
|
||||
></AssistantGroupButton>
|
||||
)}
|
||||
{!isShare && (
|
||||
|
||||
Reference in New Issue
Block a user