From 7813c896c3ef567b635bb09de67a74ad8d458b82 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 31 Jan 2025 22:22:45 +0200 Subject: [PATCH] feat(pdf): hide the option if not electron --- src/public/app/widgets/buttons/note_actions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public/app/widgets/buttons/note_actions.ts b/src/public/app/widgets/buttons/note_actions.ts index c53c0b84a..dc332b541 100644 --- a/src/public/app/widgets/buttons/note_actions.ts +++ b/src/public/app/widgets/buttons/note_actions.ts @@ -194,6 +194,7 @@ export default class NoteActionsWidget extends NoteContextAwareWidget { const canPrint = ["text", "code"].includes(note.type); this.toggleDisabled(this.$printActiveNoteButton, canPrint); this.toggleDisabled(this.$exportAsPdfButton, canPrint); + this.$exportAsPdfButton.toggleClass("hidden-ext", !utils.isElectron()); this.$renderNoteButton.toggle(note.type === "render");