A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
ui(web): Copy link button greyed out when clipboard not available (#1209)
ekambains46277c74d5df
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx b/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsxindex af746230..06bead4f 100644--- a/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx+++ b/apps/web/components/dashboard/bookmarks/BookmarkOptions.tsx@@ -48,6 +48,7 @@ export default function BookmarkOptions({ bookmark }: { bookmark: ZBookmark }) {const linkId = bookmark.id;const demoMode = !!useClientConfig().demoMode;+ const isClipboardAvailable = navigator && !!navigator.clipboard;const { setOpen: setManageListsModalOpen, content: manageListsModal } =useManageListsModal(bookmark.id);@@ -196,6 +197,7 @@ export default function BookmarkOptions({ bookmark }: { bookmark: ZBookmark }) {{bookmark.content.type === BookmarkTypes.LINK && (<DropdownMenuItem+ disabled={!isClipboardAvailable}onClick={() => {navigator.clipboard.writeText((bookmark.content as ZBookmarkedLink).url,