show actions for the correct entity type
This commit is contained in:
@@ -18,7 +18,7 @@ const entityActions: Array<ManifestTypes> = [
|
||||
icon: 'icon-add',
|
||||
label: 'Create...',
|
||||
repositoryAlias: UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE, UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
entityTypes: [UMB_DATA_TYPE_ROOT_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { UMB_DATA_TYPE_FOLDER_ENTITY_TYPE, UMB_DATA_TYPE_ENTITY_TYPE } from '../entity.js';
|
||||
import { UMB_DATA_TYPE_DETAIL_REPOSITORY_ALIAS } from '../repository/detail/manifests.js';
|
||||
import { UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS } from '../repository/folder/manifests.js';
|
||||
import { manifests as createManifests } from './create/manifests.js';
|
||||
import { manifests as moveManifests } from './move/manifests.js';
|
||||
import { manifests as copyManifests } from './copy/manifests.js';
|
||||
@@ -10,7 +11,6 @@ import {
|
||||
UmbFolderUpdateEntityAction,
|
||||
} from '@umbraco-cms/backoffice/entity-action';
|
||||
import { ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS } from '../repository/folder/manifests.js';
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
@@ -36,7 +36,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -49,7 +49,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
icon: 'icon-edit',
|
||||
label: 'Rename Folder...',
|
||||
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DATA_TYPE_ENTITY_TYPE, UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -39,7 +39,7 @@ const treeItem: ManifestTreeItem = {
|
||||
alias: 'Umb.TreeItem.DataType',
|
||||
name: 'Data Type Tree Item',
|
||||
meta: {
|
||||
entityTypes: ['data-type-root', 'data-type'],
|
||||
entityTypes: ['data-type-root', 'data-type', 'data-type-folder'],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user