mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02: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