switching notes and tabs now work for most widgets

This commit is contained in:
zadam
2020-01-18 20:49:49 +01:00
parent 493730dff6
commit 6d276582cb
11 changed files with 14 additions and 14 deletions

View File

@@ -23,8 +23,8 @@ class AttributesWidget extends StandardWidget {
return [$showFullButton];
}
async activeTabChanged() {
const attributes = await this.tabContext.attributes.getAttributes();
async refresh() {
const attributes = await this.tabContext.attributes.getAttributes();console.log("attributes", attributes);
const ownedAttributes = attributes.filter(attr => attr.noteId === this.tabContext.note.noteId);
if (attributes.length === 0) {