From b83d218fbe2a3585017dc61126e291b26cdf7c5c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 29 Sep 2024 09:37:15 -0400 Subject: [PATCH] fix: Add icons to copy functionality in command menu --- app/actions/definitions/documents.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index b62d9ee147..039427de9c 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -44,6 +44,7 @@ import DeleteDocumentsInTrash from "~/scenes/Trash/components/DeleteDocumentsInT import ConfirmationDialog from "~/components/ConfirmationDialog"; import DuplicateDialog from "~/components/DuplicateDialog"; import Icon from "~/components/Icon"; +import MarkdownIcon from "~/components/Icons/MarkdownIcon"; import SharePopover from "~/components/Sharing/Document"; import { getHeaderExpandedKey } from "~/components/Sidebar/components/Header"; import DocumentTemplatizeDialog from "~/components/TemplatizeDialog"; @@ -460,6 +461,8 @@ export const copyDocumentAsMarkdown = createAction({ name: ({ t }) => t("Copy as Markdown"), section: ActiveDocumentSection, keywords: "clipboard", + icon: , + iconInContextMenu: false, visible: ({ activeDocumentId, stores }) => !!activeDocumentId && stores.policies.abilities(activeDocumentId).download, perform: ({ stores, activeDocumentId, t }) => { @@ -477,6 +480,8 @@ export const copyDocumentLink = createAction({ name: ({ t }) => t("Copy link"), section: ActiveDocumentSection, keywords: "clipboard", + icon: , + iconInContextMenu: false, visible: ({ activeDocumentId }) => !!activeDocumentId, perform: ({ stores, activeDocumentId, t }) => { const document = activeDocumentId