From abbb4e793ff6e7d23836c5c8b55b10a71d050fd3 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 26 Nov 2025 15:10:17 +0200 Subject: [PATCH] feat(dev): action to open print page easily --- apps/client/src/widgets/ribbon/NoteActions.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index 33017221b..bc191b5d0 100644 --- a/apps/client/src/widgets/ribbon/NoteActions.tsx +++ b/apps/client/src/widgets/ribbon/NoteActions.tsx @@ -105,10 +105,24 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not + {glob.isDev && } ); } +function DevelopmentActions({ note }: { note: FNote }) { + return ( + <> + + Development-only Actions + window.open(`/?print=#root/${note.noteId}`, "_blank")} + >Open print page + + ) +} + function CommandItem({ icon, text, title, command, disabled }: { icon: string, text: string, title?: string, command: CommandNames | (() => void), disabled?: boolean, destructive?: boolean }) { return