diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts index c98ede7c5f..d80283f5a9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property/property.context.ts @@ -4,6 +4,7 @@ import { UmbContextBase } from '@umbraco-cms/backoffice/class-api'; import { UmbArrayState, UmbBasicState, + UmbBooleanState, UmbClassState, UmbDeepState, UmbObjectState, @@ -47,6 +48,9 @@ export class UmbPropertyContext extends UmbContextBase(undefined); public readonly editor = this._editor.asObservable(); + #isReadOnly = new UmbBooleanState(false); + public readonly isReadOnly = this.#isReadOnly.asObservable(); + setEditor(editor: UmbPropertyEditorUiElement | undefined) { this._editor.setValue(editor ?? undefined); } @@ -105,6 +109,10 @@ export class UmbPropertyContext extends UmbContextBase { + this.#isReadOnly.setValue(value); + }); } private _generateVariantDifferenceString() { @@ -259,6 +267,15 @@ export class UmbPropertyContext extends UmbContextBase extends UmbContextBase