mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
fixes, separation of notefull from noteshort
This commit is contained in:
@@ -23,9 +23,9 @@ class AttributesWidget extends StandardWidget {
|
||||
return [$showFullButton];
|
||||
}
|
||||
|
||||
async refreshWithNote() {
|
||||
const attributes = await this.tabContext.attributes.getAttributes();
|
||||
const ownedAttributes = attributes.filter(attr => attr.noteId === this.tabContext.note.noteId);
|
||||
async refreshWithNote(note) {
|
||||
const attributes = await note.getAttributes();
|
||||
const ownedAttributes = note.getOwnedAttributes();
|
||||
|
||||
if (attributes.length === 0) {
|
||||
this.$body.text("No attributes yet...");
|
||||
|
||||
Reference in New Issue
Block a user