mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
calendar widget setup
This commit is contained in:
@@ -25,8 +25,11 @@ class WhatLinksHereWidget extends StandardWidget {
|
||||
}
|
||||
|
||||
const $list = $("<ul>");
|
||||
let i = 0;
|
||||
|
||||
for (; i < targetRelations.length && i < 50; i++) {
|
||||
const rel = targetRelations[i];
|
||||
|
||||
for (const rel of targetRelations) {
|
||||
const $item = $("<li>")
|
||||
.append(await linkService.createNoteLink(rel.noteId))
|
||||
.append($("<span>").text(" (" + rel.name + ")"));
|
||||
@@ -34,6 +37,10 @@ class WhatLinksHereWidget extends StandardWidget {
|
||||
$list.append($item);
|
||||
}
|
||||
|
||||
if (i < targetRelations.length) {
|
||||
$list.append($("<li>").text(`${targetRelations.length - i} more links ...`))
|
||||
}
|
||||
|
||||
this.$body.empty().append($list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user