refactoring of tree handling to recommended fancytree

This commit is contained in:
zadam
2020-01-03 21:15:45 +01:00
parent 10219fb9dd
commit 94a0a31f17
7 changed files with 44 additions and 46 deletions

View File

@@ -68,10 +68,15 @@ export async function showDialog() {
const note = await treeCache.getNote(change.noteId);
const notePath = await treeService.getSomeNotePath(note);
$noteLink = await linkService.createNoteLink(notePath, {
title: change.title,
showNotePath: true
});
if (notePath) {
$noteLink = await linkService.createNoteLink(notePath, {
title: change.title,
showNotePath: true
});
}
else {
$noteLink = $("<span>").text(note.title);
}
}
$changesList.append($('<li>')