Skip to content

Build your personal knowledge base with Trilium Notes

don't display export for backend log note, fixes #4076

zadam513bf252cd23
diff --git a/src/public/app/widgets/buttons/note_actions.js b/src/public/app/widgets/buttons/note_actions.js
index a007f6b79d..829000de9e 100644
--- a/src/public/app/widgets/buttons/note_actions.js
+++ b/src/public/app/widgets/buttons/note_actions.js
@@ -105,6 +105,9 @@ export default class NoteActionsWidget extends NoteContextAwareWidget {
this.$openNoteExternallyButton.toggle(utils.isElectron());
this.$openNoteCustomButton.toggle(utils.isElectron() && !utils.isMac()); // no implementation for Mac yet
+
+ // I don't want to handle all special notes like this, but intuitively user might want to export content of backend log
+ this.toggleDisabled(this.$exportNoteButton, !['_backendLog'].includes(note.noteId));
}
async convertNoteIntoAttachmentCommand() {