add readonlyState manager to interface

This commit is contained in:
Mads Rasmussen
2024-07-31 13:58:51 +02:00
parent 2e5664a0de
commit e58cf3b98f

View File

@@ -1,5 +1,6 @@
import type { UmbContentTypeModel } from '@umbraco-cms/backoffice/content-type';
import type { Observable } from '@umbraco-cms/backoffice/external/rxjs';
import type { UmbReadOnlyVariantStateManager } from '@umbraco-cms/backoffice/utils';
import type { UmbVariantId, UmbVariantModel } from '@umbraco-cms/backoffice/variant';
import type {
UmbPropertyStructureWorkspaceContext,
@@ -14,6 +15,7 @@ export interface UmbContentWorkspaceContext<
UmbVariantDatasetWorkspaceContext<VariantModelType>,
UmbPropertyStructureWorkspaceContext<ContentTypeModel> {
readonly IS_CONTENT_WORKSPACE_CONTEXT: true;
readonly readOnlyState: UmbReadOnlyVariantStateManager;
isLoaded(): Promise<unknown> | undefined;
variantById(variantId: UmbVariantId): Observable<VariantModelType | undefined>;