Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: hide copy link button when share visibility is private (#13537)

YuTengjing6d742388fa94
diff --git a/src/features/SharePopover/index.tsx b/src/features/SharePopover/index.tsx
index 561155d34dc..365a5687afa 100644
--- a/src/features/SharePopover/index.tsx
+++ b/src/features/SharePopover/index.tsx
@@ -227,9 +227,11 @@ const SharePopoverContent = memo<SharePopoverContentProps>(({ onOpenModal }) =>
>
{t('shareModal.popover.moreOptions')}
</Button>
- <Button icon={LinkIcon} size="small" type="primary" onClick={handleCopyLink}>
- {t('shareModal.copyLink')}
- </Button>
+ {currentVisibility !== 'private' && (
+ <Button icon={LinkIcon} size="small" type="primary" onClick={handleCopyLink}>
+ {t('shareModal.copyLink')}
+ </Button>
+ )}
</Flexbox>
</Flexbox>
);