This commit is contained in:
Mads Rasmussen
2022-12-13 09:58:48 +01:00
parent 8bc240596e
commit 87c08acd6b
7 changed files with 7 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export class UmbTreeDataTypesElement extends UmbContextProviderMixin(UmbContextC
this._registerTreeItemActions();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbDataTypeStore', (dataTypeStore: UmbDataTypesStore) => {
this.provideContext('umbTreeStore', dataTypeStore);
});

View File

@@ -11,6 +11,7 @@ export class UmbTreeDocumentTypes extends UmbContextConsumerMixin(UmbContextProv
constructor() {
super();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbDocumentTypeStore', (store: UmbDocumentTypeStore) => {
this.provideContext('umbTreeStore', store);
});

View File

@@ -14,6 +14,7 @@ export class UmbTreeDocumentsElement extends UmbContextProviderMixin(UmbContextC
this._registerTreeItemActions();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbDocumentStore', (store: UmbDocumentStore) => {
this.provideContext('umbTreeStore', store);
});

View File

@@ -11,6 +11,7 @@ export class UmbTreeMediaTypes extends UmbContextConsumerMixin(UmbContextProvide
constructor() {
super();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbMediaTypeStore', (store: UmbMediaTypeStore) => {
this.provideContext('umbTreeStore', store);
});

View File

@@ -11,6 +11,7 @@ export class UmbTreeMediaElement extends UmbContextProviderMixin(UmbContextConsu
constructor() {
super();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbMediaStore', (store: UmbMediaStore) => {
this.provideContext('umbTreeStore', store);
});

View File

@@ -10,6 +10,7 @@ export class UmbTreeMemberGroups extends UmbContextProviderMixin(UmbContextConsu
constructor() {
super();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbMemberGroupStore', (store: UmbMemberGroupStore) => {
this.provideContext('umbTreeStore', store);
});

View File

@@ -11,6 +11,7 @@ export class UmbTreeMemberTypes extends UmbContextConsumerMixin(UmbContextProvid
constructor() {
super();
// TODO: how do we best expose the tree api to the tree navigator element?
this.consumeContext('umbMemberTypeStore', (store: UmbMemberTypeStore) => {
this.provideContext('umbTreeStore', store);
});