attachments WIP

This commit is contained in:
zadam
2023-05-29 00:19:54 +02:00
parent c2f70031d0
commit 0aa119af2c
37 changed files with 448 additions and 320 deletions

View File

@@ -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) {