Change order of rename and delete folder entity actions
This commit is contained in:
@@ -13,24 +13,11 @@ const folderRepository: ManifestRepository = {
|
||||
};
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DataType.DeleteFolder',
|
||||
name: 'Delete Data Type Folder Entity Action',
|
||||
weight: 800,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DataType.RenameFolder',
|
||||
name: 'Rename Data Type Folder Entity Action',
|
||||
weight: 700,
|
||||
weight: 800,
|
||||
api: UmbFolderUpdateEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-edit',
|
||||
@@ -39,6 +26,19 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DataType.DeleteFolder',
|
||||
name: 'Delete Data Type Folder Entity Action',
|
||||
weight: 700,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_DATA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DATA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [folderRepository, ...entityActions];
|
||||
|
||||
@@ -13,24 +13,11 @@ const folderRepository: ManifestRepository = {
|
||||
};
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DocumentType.DeleteFolder',
|
||||
name: 'Delete Document Type Folder Entity Action',
|
||||
weight: 800,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DocumentType.RenameFolder',
|
||||
name: 'Rename Document Type Folder Entity Action',
|
||||
weight: 700,
|
||||
weight: 800,
|
||||
api: UmbFolderUpdateEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-edit',
|
||||
@@ -39,6 +26,19 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.DocumentType.DeleteFolder',
|
||||
name: 'Delete Document Type Folder Entity Action',
|
||||
weight: 700,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_DOCUMENT_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_DOCUMENT_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [folderRepository, ...entityActions];
|
||||
|
||||
@@ -13,24 +13,11 @@ const folderRepository: ManifestRepository = {
|
||||
};
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.MediaType.DeleteFolder',
|
||||
name: 'Delete Media Type Folder Entity Action',
|
||||
weight: 800,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.MediaType.RenameFolder',
|
||||
name: 'Rename Media Type Folder Entity Action',
|
||||
weight: 700,
|
||||
weight: 800,
|
||||
api: UmbFolderUpdateEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-edit',
|
||||
@@ -39,6 +26,19 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityTypes: [UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.MediaType.DeleteFolder',
|
||||
name: 'Delete Media Type Folder Entity Action',
|
||||
weight: 700,
|
||||
api: UmbDeleteFolderEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-trash',
|
||||
label: 'Delete Folder...',
|
||||
repositoryAlias: UMB_MEDIA_TYPE_FOLDER_REPOSITORY_ALIAS,
|
||||
entityTypes: [UMB_MEDIA_TYPE_FOLDER_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [folderRepository, ...entityActions];
|
||||
|
||||
Reference in New Issue
Block a user