From aeaa99aa0fe7ae5c320b968855bef1d50d3c0c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 13 Dec 2023 11:28:52 +0100 Subject: [PATCH] use invariant property dataset context --- .../core/data-type/workspace/data-type-workspace.context.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts index a0e34911a3..ac85b0e50c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/workspace/data-type-workspace.context.ts @@ -5,6 +5,7 @@ import { UmbInvariantableWorkspaceContextInterface, UmbEditableWorkspaceContextBase, UmbWorkspaceContextInterface, + UmbInvariantWorkspacePropertyDatasetContext, } from '@umbraco-cms/backoffice/workspace'; import { appendToFrozenArray, @@ -146,7 +147,9 @@ export class UmbDataTypeWorkspaceContext } createPropertyDatasetContext(host: UmbControllerHost) { - // TODO: Could use the Workspace version, to spare the energy of mapping values: + const context = new UmbInvariantWorkspacePropertyDatasetContext(host, this); + /* + // Example of how this could have been done with the PropertyDatasetBaseContext: const context = new UmbPropertyDatasetBaseContext(host); // Observe workspace name: @@ -184,6 +187,7 @@ export class UmbDataTypeWorkspaceContext }, 'observePropertyValues', ); + */ return context; }