From db720acc183bc470150fe0b398cae294c3b294c7 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Dec 2025 22:25:09 +0200 Subject: [PATCH] feat(note_actions): hide options in help pages --- apps/client/src/widgets/ribbon/NoteActions.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index 06df5889b..7334aefa7 100644 --- a/apps/client/src/widgets/ribbon/NoteActions.tsx +++ b/apps/client/src/widgets/ribbon/NoteActions.tsx @@ -57,6 +57,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not const isMac = getIsMac(); const hasSource = ["text", "code", "relationMap", "mermaid", "canvas", "mindMap", "aiChat"].includes(noteType); const isSearchOrBook = ["search", "book"].includes(noteType); + const isHelpPage = note.noteId.startsWith("_help"); const [syncServerHost] = useTriliumOption("syncServerHost"); const { isReadOnly, enableEditing } = useIsNoteReadOnly(note, noteContext); @@ -81,8 +82,10 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not {isElectron && } - {isNewLayout && } - + {isNewLayout && !isHelpPage && <> + + + } - {glob.isDev && } + {glob.isDev && <> + + + } ); }