attachment improvements

This commit is contained in:
zadam
2023-04-11 17:45:51 +02:00
parent a5f0b2a81e
commit 54c0268593
10 changed files with 191 additions and 47 deletions

View File

@@ -31,18 +31,12 @@ async function mouseEnterHandler() {
return;
}
let notePath = linkService.getNotePathFromUrl($link.attr("href"));
const { notePath, noteId, viewScope } = linkService.parseNotePathAndScope($link);
if (!notePath) {
notePath = $link.attr("data-note-path");
}
if (!notePath) {
if (!notePath || viewScope.viewMode !== 'default') {
return;
}
const noteId = treeService.getNoteIdFromNotePath(notePath);
const note = await froca.getNote(noteId);
const content = await renderTooltip(note);