converted export dialog to new pattern

This commit is contained in:
zadam
2022-06-16 15:04:57 +02:00
parent 595e16cc6f
commit 36c210d0dd
8 changed files with 264 additions and 240 deletions

View File

@@ -1451,10 +1451,9 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
}
async exportNoteCommand({node}) {
const exportDialog = await import('../dialogs/export.js');
const notePath = treeService.getNotePath(node);
exportDialog.showDialog(notePath,"subtree");
this.triggerCommand("showExportDialog", {notePath, defaultType: "subtree"});
}
async importIntoNoteCommand({node}) {