mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
attachment improvements
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user