use correct repo in entity action

This commit is contained in:
Mads Rasmussen
2023-11-13 19:54:49 +01:00
parent 2dca1299c9
commit c70a15e734
4 changed files with 8 additions and 8 deletions

View File

@@ -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<UmbDataTypeRepository> {
export class UmbCopyDataTypeEntityAction extends UmbEntityActionBase<UmbCopyDataTypeRepository> {
#modalManagerContext?: UmbModalManagerContext;
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {

View File

@@ -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<ManifestTypes> = [
meta: {
icon: 'icon-documents',
label: 'Copy to...',
repositoryAlias: DATA_TYPE_REPOSITORY_ALIAS,
repositoryAlias: COPY_DATA_TYPE_REPOSITORY_ALIAS,
entityTypes: [DATA_TYPE_ENTITY_TYPE],
},
},

View File

@@ -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<ManifestTypes> = [
meta: {
icon: 'icon-enter',
label: 'Move to...',
repositoryAlias: DATA_TYPE_REPOSITORY_ALIAS,
repositoryAlias: MOVE_DATA_TYPE_REPOSITORY_ALIAS,
entityTypes: [DATA_TYPE_ENTITY_TYPE],
},
},

View File

@@ -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<UmbDataTypeRepository> {
export class UmbMoveDataTypeEntityAction extends UmbEntityActionBase<UmbMoveDataTypeRepository> {
#modalManagerContext?: UmbModalManagerContext;
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string) {