From 34b26141ff9db85e981e4c8a772dbf9f159a10a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 21 Feb 2023 20:11:37 +0100 Subject: [PATCH] bind alias + move state properties --- .../workspace-property.element.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.element.ts index 3295ac5c11..139f45da1d 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/workspace-property/workspace-property.element.ts @@ -44,12 +44,6 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { `, ]; - @state() - private _label?: string; - - @state() - private _description?: string; - /** * Label. Name of the property * @type {string} @@ -139,6 +133,15 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { @state() private _element?: { value?: any; config?: any } & HTMLElement; // TODO: invent interface for propertyEditorUI. + @state() + private _alias?: string; + + @state() + private _label?: string; + + @state() + private _description?: string; + private _propertyContext = new UmbWorkspacePropertyContext(this); private propertyEditorUIObserver?: UmbObserverController; @@ -149,6 +152,9 @@ export class UmbWorkspacePropertyElement extends UmbLitElement { constructor() { super(); + this.observe(this._propertyContext.alias, (alias) => { + this._alias = alias; + }); this.observe(this._propertyContext.label, (label) => { this._label = label; });