feat(pdf): hide the option if not electron

This commit is contained in:
Elian Doran 2025-01-31 22:22:45 +02:00
parent 508ce4c962
commit 7813c896c3
No known key found for this signature in database

View File

@ -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");