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

This commit is contained in:
zadam 2023-07-15 09:35:03 +02:00
parent f591e954f3
commit 513bf252cd

View File

@ -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() {