From 500e6104a1bafe9dd9d8f2e88411b495c9943d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 12 Dec 2023 14:14:48 +0100 Subject: [PATCH] rename getType to getEntityType --- .../property/property-dataset/property-dataset-base-context.ts | 2 +- .../property-dataset/property-dataset-context.interface.ts | 2 +- .../invariant-workspace-property-dataset-context.ts | 2 +- .../document-property-dataset-context.token.ts | 2 +- .../document-property-dataset-context.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts index bf38d0ae29..9f6a32fb01 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-base-context.ts @@ -26,7 +26,7 @@ export class UmbPropertyDatasetBaseContext private _entityType!: string; private _unique!: string; - getType() { + getEntityType() { return this._entityType; } getUnique() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts index 95ecee1067..a27696958e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property/property-dataset/property-dataset-context.interface.ts @@ -16,7 +16,7 @@ import type { Observable } from '@umbraco-cms/backoffice/external/rxjs'; * Also setting the name is an additional feature. */ export interface UmbPropertyDatasetContext { - getType(): string; + getEntityType(): string; getUnique(): string | undefined; getVariantId: () => UmbVariantId; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts index 067c806e9e..7a4bd4d0e2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-property-dataset/invariant-workspace-property-dataset-context.ts @@ -26,7 +26,7 @@ export class UmbInvariantWorkspacePropertyDatasetContext< getVariantId() { return UmbVariantId.CreateInvariant(); } - getType() { + getEntityType() { return this.#workspace.getEntityType(); } getUnique() { diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts index bf9271f588..882da08611 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.token.ts @@ -5,7 +5,7 @@ import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; export const IsDocumentVariantContext = ( context: UmbPropertyDatasetContext, -): context is UmbDocumentPropertyDataContext => context.getType() === UMB_DOCUMENT_ENTITY_TYPE; +): context is UmbDocumentPropertyDataContext => context.getEntityType() === UMB_DOCUMENT_ENTITY_TYPE; export const UMB_DOCUMENT_VARIANT_CONTEXT = new UmbContextToken< UmbPropertyDatasetContext, diff --git a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts index 9b8da4841c..24e8b55ac2 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/documents/documents/property-dataset-context/document-property-dataset-context.ts @@ -34,7 +34,7 @@ export class UmbDocumentPropertyDataContext // This will actually make it simpler if multiple are watching the same property. // But it will also mean that we wil watch all properties and their structure, for variantID, all the time for all of the properties. - getType(): string { + getEntityType(): string { return this.#workspace.getEntityType(); } getUnique(): string | undefined {