tree change listener and others

This commit is contained in:
zadam
2020-01-29 21:38:58 +01:00
parent 439b45b0b8
commit b65631be7e
10 changed files with 140 additions and 49 deletions

View File

@@ -88,11 +88,9 @@ class AttributesWidget extends StandardWidget {
}
}
syncDataListener({data}) {
if (data.find(sd => sd.entityName === 'attributes' && sd.noteId === this.tabContext.note.noteId)) {
// no need to invalidate attributes since the Attribute class listens to this as well
// (and is guaranteed to run first)
this.doRenderBody();
entitiesReloadedListener({loadResults}) {
if (loadResults.getAttributes().find(attr => attr.type === 'relation' && attr.noteId === this.noteId)) {
this.refresh();
}
}
}