import & export fixed

This commit is contained in:
zadam
2020-01-21 21:43:23 +01:00
parent 96a7b4e45e
commit 55d1f9e9f0
8 changed files with 57 additions and 49 deletions

View File

@@ -99,9 +99,9 @@ class TreeContextMenu {
}
async selectContextMenuItem(event, cmd) {
if (cmd === 'openInTab') {
const notePath = await treeUtils.getNotePath(this.node);
const notePath = await treeUtils.getNotePath(this.node);
if (cmd === 'openInTab') {
noteDetailService.openInTab(notePath, false);
}
else if (cmd.startsWith("insertNoteAfter")) {
@@ -160,11 +160,11 @@ class TreeContextMenu {
}
else if (cmd === "export") {
const exportDialog = await import('../dialogs/export.js');
exportDialog.showDialog(this.node,"subtree");
exportDialog.showDialog(notePath,"subtree");
}
else if (cmd === "importIntoNote") {
const importDialog = await import('../dialogs/import.js');
importDialog.showDialog(this.node);
importDialog.showDialog(this.node.data.noteId);
}
else if (cmd === "collapseSubtree") {
this.treeWidget.collapseTree(this.node);