self registrations
This commit is contained in:
@@ -18,8 +18,10 @@ import {
|
||||
} from './documents/document-types/document-type.store';
|
||||
import { UmbMediaTypeStore, UMB_MEDIA_TYPE_STORE_CONTEXT_TOKEN } from './media/media-types/media-type.store';
|
||||
import { UmbMemberTypeStore, UMB_MEMBER_TYPE_STORE_CONTEXT_TOKEN } from './members/member-types/member-type.store';
|
||||
import { UmbDocumentStore, UMB_DOCUMENT_DETAIL_STORE_CONTEXT_TOKEN } from './documents/documents/document.detail.store';
|
||||
import { UmbMediaStore, UMB_MEDIA_STORE_CONTEXT_TOKEN } from './media/media/media.store';
|
||||
import { UmbDocumentDetailStore } from './documents/documents/document.detail.store';
|
||||
import { UmbDocumentTreeStore } from './documents/documents/document.tree.store';
|
||||
import { UmbMediaDetailStore } from './media/media/media.detail.store';
|
||||
import { UmbMediaTreeStore } from './media/media/media.tree.store';
|
||||
import { UmbMemberGroupStore, UMB_MEMBER_GROUP_STORE_CONTEXT_TOKEN } from './members/member-groups/member-group.store';
|
||||
import { UmbDictionaryStore, UMB_DICTIONARY_STORE_CONTEXT_TOKEN } from './translation/dictionary/dictionary.store';
|
||||
import {
|
||||
@@ -68,9 +70,11 @@ export class UmbBackofficeElement extends UmbLitElement {
|
||||
// TODO: find a way this is possible outside this element. It needs to be possible to register stores in extensions
|
||||
this.provideContext(UMB_CURRENT_USER_STORE_CONTEXT_TOKEN, new UmbCurrentUserStore());
|
||||
|
||||
new UmbDocumentStore(this);
|
||||
new UmbDocumentDetailStore(this);
|
||||
new UmbDocumentTreeStore(this);
|
||||
new UmbMediaDetailStore(this);
|
||||
new UmbMediaTreeStore(this);
|
||||
|
||||
this.provideContext(UMB_MEDIA_STORE_CONTEXT_TOKEN, new UmbMediaStore(this));
|
||||
this.provideContext(UMB_DATA_TYPE_STORE_CONTEXT_TOKEN, new UmbDataTypeStore(this));
|
||||
this.provideContext(UMB_DOCUMENT_TYPE_STORE_CONTEXT_TOKEN, new UmbDocumentTypeStore(this));
|
||||
this.provideContext(UMB_MEDIA_TYPE_STORE_CONTEXT_TOKEN, new UmbMediaTypeStore(this));
|
||||
|
||||
Reference in New Issue
Block a user