|
|
|
@ -35,6 +35,7 @@ async function createNoteLink(notePath, options = {}) {
|
|
|
|
if (showNotePath) {
|
|
|
|
if (showNotePath) {
|
|
|
|
notePath = await treeService.resolveNotePath(notePath);
|
|
|
|
notePath = await treeService.resolveNotePath(notePath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (notePath) {
|
|
|
|
const noteIds = notePath.split("/");
|
|
|
|
const noteIds = notePath.split("/");
|
|
|
|
noteIds.pop(); // remove last element
|
|
|
|
noteIds.pop(); // remove last element
|
|
|
|
|
|
|
|
|
|
|
|
@ -44,6 +45,7 @@ async function createNoteLink(notePath, options = {}) {
|
|
|
|
$container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")"));
|
|
|
|
$container.append($("<small>").text(" (" + await treeUtils.getNotePathTitle(parentNotePath) + ")"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $container;
|
|
|
|
return $container;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|