diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/manifests.ts index 0e25aa220c..6ab730ac33 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/manifests.ts @@ -1,5 +1,5 @@ import { manifests as folderManifests } from './folder/manifests.js'; -import { manifests as reloadManifests } from './reload-tree-item/manifests.js'; +import { manifests as reloadManifests } from './reload-tree-item-children/manifests.js'; import { UmbDataTypeTreeRepository } from './data-type-tree.repository.js'; import { UmbDataTypeTreeStore } from './data-type-tree.store.js'; import type { diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item-children/manifests.ts similarity index 98% rename from src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item/manifests.ts rename to src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item-children/manifests.ts index 19c1e46657..2aca5cd675 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/data-type/tree/reload-tree-item-children/manifests.ts @@ -12,7 +12,7 @@ export const manifests: Array = [ type: 'entityAction', alias: 'Umb.EntityAction.DataType.Tree.ReloadTreeItemChildren', name: 'Reload Data Type Tree Item Children Entity Action', - weight: 900, + weight: 10, api: UmbReloadTreeItemChildrenEntityAction, meta: { icon: 'icon-refresh', diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entities.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entities.ts deleted file mode 100644 index b07e1f48a9..0000000000 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entities.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const UMB_DICTIONARY_ROOT_ENTITY_TYPE = 'dictionary-root'; -export const UMB_DICTIONARY_ENTITY_TYPE = 'dictionary-item'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/manifests.ts index c797c718e9..fc40e49434 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/manifests.ts @@ -1,5 +1,5 @@ import { UMB_DICTIONARY_REPOSITORY_ALIAS } from '../repository/manifests.js'; -import { UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entities.js'; +import { UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entity.js'; import UmbReloadDictionaryEntityAction from './reload.action.js'; import UmbImportDictionaryEntityAction from './import/import.action.js'; import UmbExportDictionaryEntityAction from './export/export.action.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity.ts new file mode 100644 index 0000000000..a2c3b1a5d7 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity.ts @@ -0,0 +1,5 @@ +export const UMB_DICTIONARY_ROOT_ENTITY_TYPE = 'dictionary-root'; +export const UMB_DICTIONARY_ENTITY_TYPE = 'dictionary-item'; + +export type UmbDictionaryEntityType = typeof UMB_DICTIONARY_ENTITY_TYPE; +export type UmbDictionaryRootEntityType = typeof UMB_DICTIONARY_ROOT_ENTITY_TYPE; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/menu-item/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/menu-item/manifests.ts index ac644d838e..f787f054e5 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/menu-item/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/menu-item/manifests.ts @@ -1,4 +1,4 @@ -import { UMB_DICTIONARY_ENTITY_TYPE } from '../entities.js'; +import { UMB_DICTIONARY_ENTITY_TYPE } from '../entity.js'; import { UMB_DICTIONARY_TREE_ALIAS } from '../tree/index.js'; import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/dictionary-tree.repository.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/dictionary-tree.repository.ts index 9a65449f54..20be5feebb 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/dictionary-tree.repository.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/dictionary-tree.repository.ts @@ -1,4 +1,4 @@ -import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entities.js'; +import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entity.js'; import { UmbDictionaryTreeServerDataSource } from './dictionary-tree.server.data-source.js'; import { UmbDictionaryTreeItemModel, UmbDictionaryTreeRootModel } from './types.js'; import { UMB_DICTIONARY_TREE_STORE_CONTEXT } from './dictionary-tree.store.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/manifests.ts index e2e0185c3c..4f0604baff 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/manifests.ts @@ -1,6 +1,7 @@ -import { UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entities.js'; +import { UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entity.js'; import { UmbDictionaryTreeRepository } from './dictionary-tree.repository.js'; import { UmbDictionaryTreeStore } from './dictionary-tree.store.js'; +import { manifests as reloadTreeItemChildrenManifests } from './reload-tree-item-children/manifests.js'; import type { ManifestRepository, ManifestTree, @@ -45,4 +46,4 @@ const treeItem: ManifestTreeItem = { }, }; -export const manifests = [treeRepository, treeStore, tree, treeItem]; +export const manifests = [treeRepository, treeStore, tree, treeItem, ...reloadTreeItemChildrenManifests]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/reload-tree-item-children/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/reload-tree-item-children/manifests.ts new file mode 100644 index 0000000000..3c39492a29 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/tree/reload-tree-item-children/manifests.ts @@ -0,0 +1,20 @@ +import { UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE } from '../../entity.js'; +import { UMB_DICTIONARY_REPOSITORY_ALIAS } from '../../repository/manifests.js'; +import { UmbReloadTreeItemChildrenEntityAction } from '@umbraco-cms/backoffice/tree'; +import { type ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry'; + +export const manifests: Array = [ + { + type: 'entityAction', + alias: 'Umb.EntityAction.Dictionary.Tree.ReloadTreeItemChildren', + name: 'Reload Dictionary Tree Item Children Entity Action', + weight: 10, + api: UmbReloadTreeItemChildrenEntityAction, + meta: { + icon: 'icon-refresh', + label: 'Reload children...', + repositoryAlias: UMB_DICTIONARY_REPOSITORY_ALIAS, + entityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE], + }, + }, +]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/section.manifest.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/section.manifest.ts index 9ea2fde786..c100510717 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/section.manifest.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/section.manifest.ts @@ -1,4 +1,4 @@ -import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from './dictionary/entities.js'; +import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from './dictionary/entity.js'; import type { ManifestDashboard, ManifestSection, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; const sectionAlias = 'Umb.Section.Dictionary';