From 513bf252cd2380d8c454d321604e66f926cf727a Mon Sep 17 00:00:00 2001 From: zadam Date: Sat, 15 Jul 2023 09:35:03 +0200 Subject: [PATCH] don't display export for backend log note, fixes #4076 --- src/public/app/widgets/buttons/note_actions.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/app/widgets/buttons/note_actions.js b/src/public/app/widgets/buttons/note_actions.js index a007f6b79..829000de9 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() {