add readonly state manager
This commit is contained in:
@@ -33,6 +33,7 @@ import { UMB_INVARIANT_CULTURE, UmbVariantId } from '@umbraco-cms/backoffice/var
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import type { UmbLanguageDetailModel } from '@umbraco-cms/backoffice/language';
|
||||
import type { UmbContentWorkspaceContext } from '@umbraco-cms/backoffice/content';
|
||||
import { UmbReadOnlyVariantStateManager } from '@umbraco-cms/backoffice/utils';
|
||||
|
||||
type EntityType = UmbDocumentBlueprintDetailModel;
|
||||
|
||||
@@ -59,6 +60,8 @@ export class UmbDocumentBlueprintWorkspaceContext
|
||||
#languages = new UmbArrayState<UmbLanguageDetailModel>([], (x) => x.unique);
|
||||
public readonly languages = this.#languages.asObservable();
|
||||
|
||||
public readonly readOnlyState = new UmbReadOnlyVariantStateManager(this);
|
||||
|
||||
public isLoaded() {
|
||||
return this.#getDataPromise;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user