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

@@ -15,7 +15,7 @@ const $explodeArchivesCheckbox = $("#explode-archives-checkbox");
let parentNoteId = null;
export async function showDialog(node) {
export async function showDialog(noteId) {
utils.closeActiveDialog();
$fileUploadInput.val('').trigger('change'); // to trigger Import button disabling listener below
@@ -28,7 +28,7 @@ export async function showDialog(node) {
glob.activeDialog = $dialog;
parentNoteId = node.data.noteId;
parentNoteId = noteId;
$noteTitle.text(await treeUtils.getNoteTitle(parentNoteId));