rename method

This commit is contained in:
Mads Rasmussen
2022-10-05 13:26:11 +02:00
parent ee4f4f532b
commit be75317668

View File

@@ -45,21 +45,21 @@ export class UmbSectionElement extends UmbContextConsumerMixin(LitElement) {
// TODO: wait for more contexts
this.consumeContext('umbExtensionRegistry', (extensionsRegistry: UmbExtensionRegistry) => {
this._extensionRegistry = extensionsRegistry;
this._useTrees();
this._observeTrees();
});
this.consumeContext('umbSectionContext', (sectionContext: UmbSectionContext) => {
this._sectionContext = sectionContext;
this._useTrees();
this._observeTrees();
});
this.consumeContext('umbEntityStore', (entityStore: UmbEntityStore) => {
this._entityStore = entityStore;
this._useTrees();
this._observeTrees();
});
}
private _useTrees() {
private _observeTrees() {
if (!this._sectionContext || !this._extensionRegistry || !this._entityStore) return;
this._treesSubscription?.unsubscribe();