use correct repo in entity action
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user