From 991b335c3e0046ff159578eb1a85448367a6e0a2 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 19 Oct 2020 20:29:56 +0200 Subject: [PATCH] allow exporting code notes from note actions, closes #1315 --- src/public/app/widgets/note_actions.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/public/app/widgets/note_actions.js b/src/public/app/widgets/note_actions.js index 60eba0229..77b2a5f19 100644 --- a/src/public/app/widgets/note_actions.js +++ b/src/public/app/widgets/note_actions.js @@ -126,13 +126,6 @@ export default class NoteActionsWidget extends TabAwareWidget { this.$showSourceButton.attr('disabled', 'disabled'); } - if (note.type === 'text') { - this.$exportNoteButton.removeAttr('disabled'); - } - else { - this.$exportNoteButton.attr('disabled', 'disabled'); - } - this.$protectButton.toggle(!note.isProtected); this.$unprotectButton.toggle(!!note.isProtected); }