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

@@ -437,7 +437,7 @@ export default class AttributeDetailWidget extends NoteContextAwareWidget {
.empty()
.append(attribute.type === 'label' ? 'Label' : 'Relation')
.append(' is owned by note ')
.append(await linkService.createNoteLink(attribute.noteId))
.append(await linkService.createLink(attribute.noteId))
}
this.$inputName
@@ -602,7 +602,7 @@ export default class AttributeDetailWidget extends NoteContextAwareWidget {
for (const note of displayedNotes) {
const notePath = note.getBestNotePathString(hoistedNoteId);
const $noteLink = await linkService.createNoteLink(notePath, {showNotePath: true});
const $noteLink = await linkService.createLink(notePath, {showNotePath: true});
this.$relatedNotesList.append(
$("<li>").append($noteLink)
@@ -699,7 +699,7 @@ export default class AttributeDetailWidget extends NoteContextAwareWidget {
this.toggleInt(false);
}
createNoteLink(noteId) {
createLink(noteId) {
return $("<a>", {
href: `#root/${noteId}`,
class: 'reference-link'