introduction of refreshWithNote

This commit is contained in:
zadam
2020-01-19 11:37:24 +01:00
parent adb9ce5e93
commit 9f1e777e6d
16 changed files with 49 additions and 44 deletions

View File

@@ -35,14 +35,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
return this.$widget;
}
async refresh() {
async refreshWithNote() {
this.$container.empty();
if (!this.tabContext.note) {
this.toggle(false);
return;
}
const attributes = await this.tabContext.attributes.getAttributes();
const promoted = attributes.filter(attr =>