clean up usage of old document type store
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { STORE_ALIAS } from '../document-type.store';
|
||||
import { UMB_DOCUMENT_TYPE_DETAIL_STORE_CONTEXT_TOKEN } from '../document-type.detail.store';
|
||||
import type { ManifestTree, ManifestTreeItemAction } from '@umbraco-cms/models';
|
||||
|
||||
const tree: ManifestTree = {
|
||||
@@ -6,7 +6,7 @@ const tree: ManifestTree = {
|
||||
alias: 'Umb.Tree.DocumentTypes',
|
||||
name: 'Document Types Tree',
|
||||
meta: {
|
||||
storeAlias: STORE_ALIAS,
|
||||
storeAlias: UMB_DOCUMENT_TYPE_DETAIL_STORE_CONTEXT_TOKEN.toString(),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { UmbWorkspaceContentContext } from '../../../shared/components/workspace/workspace-content/workspace-content.context';
|
||||
import {
|
||||
UmbDocumentTypeStore,
|
||||
UmbDocumentTypeStoreItemType,
|
||||
UMB_DOCUMENT_TYPE_STORE_CONTEXT_TOKEN,
|
||||
} from 'src/backoffice/documents/document-types/document-type.store';
|
||||
UmbDocumentTypeDetailStore,
|
||||
UMB_DOCUMENT_TYPE_DETAIL_STORE_CONTEXT_TOKEN,
|
||||
} from '../document-type.detail.store';
|
||||
import { UmbControllerHostInterface } from '@umbraco-cms/controller';
|
||||
import type { DocumentTypeDetails } from '@umbraco-cms/models';
|
||||
|
||||
const DefaultDocumentTypeData = {
|
||||
key: '',
|
||||
@@ -15,14 +15,14 @@ const DefaultDocumentTypeData = {
|
||||
parentKey: '',
|
||||
alias: '',
|
||||
properties: [],
|
||||
} as UmbDocumentTypeStoreItemType;
|
||||
} as DocumentTypeDetails;
|
||||
|
||||
export class UmbWorkspaceDocumentTypeContext extends UmbWorkspaceContentContext<
|
||||
UmbDocumentTypeStoreItemType,
|
||||
UmbDocumentTypeStore
|
||||
DocumentTypeDetails,
|
||||
UmbDocumentTypeDetailStore
|
||||
> {
|
||||
constructor(host: UmbControllerHostInterface) {
|
||||
super(host, DefaultDocumentTypeData, UMB_DOCUMENT_TYPE_STORE_CONTEXT_TOKEN.toString(), 'documentType');
|
||||
super(host, DefaultDocumentTypeData, UMB_DOCUMENT_TYPE_DETAIL_STORE_CONTEXT_TOKEN.toString(), 'documentType');
|
||||
}
|
||||
|
||||
public setPropertyValue(alias: string, value: unknown) {
|
||||
|
||||
Reference in New Issue
Block a user