mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 16:32:33 +08:00
allow exporting code notes from note actions, closes #1315
This commit is contained in:
parent
fd2d49de4f
commit
991b335c3e
@ -126,13 +126,6 @@ export default class NoteActionsWidget extends TabAwareWidget {
|
|||||||
this.$showSourceButton.attr('disabled', 'disabled');
|
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.$protectButton.toggle(!note.isProtected);
|
||||||
this.$unprotectButton.toggle(!!note.isProtected);
|
this.$unprotectButton.toggle(!!note.isProtected);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user