mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
possibility to export single code note as markdown. UI fix of disabled buttons
This commit is contained in:
8
src/public/javascripts/services/bootstrap.js
vendored
8
src/public/javascripts/services/bootstrap.js
vendored
@@ -103,7 +103,13 @@ if (utils.isElectron()) {
|
||||
});
|
||||
}
|
||||
|
||||
$("#export-note-to-markdown-button").click(() => exportService.exportSubtree(noteDetailService.getCurrentNoteId(), 'markdown-single'));
|
||||
$("#export-note-to-markdown-button").click(function () {
|
||||
if ($(this).hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
exportService.exportSubtree(noteDetailService.getCurrentNoteId(), 'markdown-single')
|
||||
});
|
||||
|
||||
treeService.showTree();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user