register sort children for document root

This commit is contained in:
Mads Rasmussen
2024-04-01 10:20:15 +02:00
parent e58cf5455c
commit e3c1563cc0

View File

@@ -1,4 +1,4 @@
import { UMB_DOCUMENT_ENTITY_TYPE } from '../../entity.js';
import { UMB_DOCUMENT_ENTITY_TYPE, UMB_DOCUMENT_ROOT_ENTITY_TYPE } from '../../entity.js';
import { UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS } from '../../repository/index.js';
import { UMB_SORT_CHILDREN_OF_DOCUMENT_REPOSITORY_ALIAS } from './repository/constants.js';
@@ -8,7 +8,7 @@ export const manifests = [
kind: 'sortChildrenOf',
alias: 'Umb.EntityAction.Document.SortChildrenOf',
name: 'Sort Children Of Document Entity Action',
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
forEntityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
meta: {
itemRepositoryAlias: UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS,
sortRepositoryAlias: UMB_SORT_CHILDREN_OF_DOCUMENT_REPOSITORY_ALIAS,