From c70a15e734742e718e91b249a0472182eff66b58 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 13 Nov 2023 19:54:49 +0100 Subject: [PATCH] use correct repo in entity action --- .../settings/data-types/entity-actions/copy/copy.action.ts | 4 ++-- .../settings/data-types/entity-actions/copy/manifests.ts | 4 ++-- .../settings/data-types/entity-actions/move/manifests.ts | 4 ++-- .../settings/data-types/entity-actions/move/move.action.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/copy.action.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/copy.action.ts index 88aba1f122..5410ee0cb0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/copy.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/copy.action.ts @@ -1,4 +1,4 @@ -import { UmbDataTypeRepository } from '../../repository/data-type.repository.js'; +import { type UmbCopyDataTypeRepository } from '../../repository/copy/data-type-copy.repository.js'; import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action'; import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; import { @@ -8,7 +8,7 @@ import { } from '@umbraco-cms/backoffice/modal'; // TODO: investigate what we need to make a generic copy action -export class UmbCopyDataTypeEntityAction extends UmbEntityActionBase { +export class UmbCopyDataTypeEntityAction extends UmbEntityActionBase { #modalManagerContext?: UmbModalManagerContext; constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) { diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/manifests.ts index ee241a86e2..a3bd85a746 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/copy/manifests.ts @@ -1,5 +1,5 @@ import { DATA_TYPE_ENTITY_TYPE } from '../../entities.js'; -import { DATA_TYPE_REPOSITORY_ALIAS } from '../../repository/manifests.js'; +import { COPY_DATA_TYPE_REPOSITORY_ALIAS } from '../../repository/copy/manifests.js'; import { UmbCopyDataTypeEntityAction } from './copy.action.js'; import { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; @@ -13,7 +13,7 @@ const entityActions: Array = [ meta: { icon: 'icon-documents', label: 'Copy to...', - repositoryAlias: DATA_TYPE_REPOSITORY_ALIAS, + repositoryAlias: COPY_DATA_TYPE_REPOSITORY_ALIAS, entityTypes: [DATA_TYPE_ENTITY_TYPE], }, }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/manifests.ts index fe1ae6354c..67713e6092 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/manifests.ts @@ -1,5 +1,5 @@ import { DATA_TYPE_ENTITY_TYPE } from '../../entities.js'; -import { DATA_TYPE_REPOSITORY_ALIAS } from '../../repository/manifests.js'; +import { MOVE_DATA_TYPE_REPOSITORY_ALIAS } from '../../repository/move/manifests.js'; import { UmbMoveDataTypeEntityAction } from './move.action.js'; import { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; @@ -13,7 +13,7 @@ const entityActions: Array = [ meta: { icon: 'icon-enter', label: 'Move to...', - repositoryAlias: DATA_TYPE_REPOSITORY_ALIAS, + repositoryAlias: MOVE_DATA_TYPE_REPOSITORY_ALIAS, entityTypes: [DATA_TYPE_ENTITY_TYPE], }, }, diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/move.action.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/move.action.ts index 958a786c53..1ecd58718e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/move.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/entity-actions/move/move.action.ts @@ -1,4 +1,4 @@ -import { UmbDataTypeRepository } from '../../repository/data-type.repository.js'; +import { UmbMoveDataTypeRepository } from '../../repository/move/data-type-move.repository.js'; import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action'; import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; import { @@ -8,7 +8,7 @@ import { } from '@umbraco-cms/backoffice/modal'; // TODO: investigate what we need to make a generic move action -export class UmbMoveDataTypeEntityAction extends UmbEntityActionBase { +export class UmbMoveDataTypeEntityAction extends UmbEntityActionBase { #modalManagerContext?: UmbModalManagerContext; constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {