fix saving & refreshing attributes across compoments

This commit is contained in:
zadam
2020-08-12 00:02:19 +02:00
parent 935e5de493
commit ae909d1079
7 changed files with 28 additions and 19 deletions

View File

@@ -432,4 +432,10 @@ export default class AttributeEditorWidget extends TabAwareWidget {
updateAttributeList(attributes) {
this.renderOwnedAttributes(attributes, false);
}
entitiesReloadedEvent({loadResults}) {
if (loadResults.getAttributes(this.componentId).find(attr => attr.isAffecting(this.note))) {
this.refresh();
}
}
}