mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 09:15:50 +01:00
attachments WIP
This commit is contained in:
@@ -20,7 +20,7 @@ async function renderAttribute(attribute, renderIsInheritable) {
|
||||
// when the relation has just been created, then it might not have a value
|
||||
if (attribute.value) {
|
||||
$attr.append(document.createTextNode(`~${attribute.name}${isInheritable}=`));
|
||||
$attr.append(await createNoteLink(attribute.value));
|
||||
$attr.append(await createLink(attribute.value));
|
||||
}
|
||||
} else {
|
||||
ws.logError(`Unknown attr type: ${attribute.type}`);
|
||||
@@ -47,7 +47,7 @@ function formatValue(val) {
|
||||
}
|
||||
}
|
||||
|
||||
async function createNoteLink(noteId) {
|
||||
async function createLink(noteId) {
|
||||
const note = await froca.getNote(noteId);
|
||||
|
||||
if (!note) {
|
||||
|
||||
Reference in New Issue
Block a user