mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
feat(pdf): hide the option if not electron
This commit is contained in:
parent
508ce4c962
commit
7813c896c3
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user