Skip to content

Build your personal knowledge base with Trilium Notes

fix(dev actions): don't offer the print page for a locked note

Elian Doran5d3172f7bafc
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index b59a13c749..093b6ce74d 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -340,6 +340,7 @@ function DevelopmentActions({ note, noteContext }: { note: FNote, noteContext?:
<FormListHeader text="Development Actions" />
<FormListItem
icon="bx bx-printer"
+ disabled={!note.isContentAvailable()}
onClick={() => window.open(`/?print=#root/${note.noteId}`, "_blank")}
>Open print page</FormListItem>
<FormListItem