possibility to export single code note as markdown. UI fix of disabled buttons

This commit is contained in:
azivner
2018-11-19 09:54:33 +01:00
parent d6b5cd6ead
commit 568c2c997f
4 changed files with 36 additions and 6 deletions

View File

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