add state manager to document workspace
This commit is contained in:
@@ -58,6 +58,7 @@ import { UMB_NOTIFICATION_CONTEXT } from '@umbraco-cms/backoffice/notification';
|
||||
import type { UmbContentWorkspaceContext } from '@umbraco-cms/backoffice/content';
|
||||
import type { UmbDocumentTypeDetailModel } from '@umbraco-cms/backoffice/document-type';
|
||||
import { UmbIsTrashedEntityContext } from '@umbraco-cms/backoffice/recycle-bin';
|
||||
import { UmbReadOnlyVariantStateManager } from '@umbraco-cms/backoffice/utils';
|
||||
|
||||
type EntityType = UmbDocumentDetailModel;
|
||||
export class UmbDocumentWorkspaceContext
|
||||
@@ -94,6 +95,8 @@ export class UmbDocumentWorkspaceContext
|
||||
/*#blueprint = new UmbObjectState<UmbDocumentBlueprintDetailModel | undefined>(undefined);
|
||||
public readonly blueprint = this.#blueprint.asObservable();*/
|
||||
|
||||
readOnlyState = new UmbReadOnlyVariantStateManager(this);
|
||||
|
||||
public isLoaded() {
|
||||
return this.#getDataPromise;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user