add reload to media tree
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { UMB_MEDIA_ENTITY_TYPE, UMB_MEDIA_ROOT_ENTITY_TYPE } from '../entity.js';
|
||||
import { UmbMediaTreeRepository } from './media-tree.repository.js';
|
||||
import { UmbMediaTreeStore } from './media-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];
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { UMB_MEDIA_ENTITY_TYPE, UMB_MEDIA_ROOT_ENTITY_TYPE } from '../../entity.js';
|
||||
import { UmbReloadTreeItemChildrenEntityAction } from '@umbraco-cms/backoffice/tree';
|
||||
import type { ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const manifests: Array<ManifestEntityAction> = [
|
||||
{
|
||||
type: 'entityAction',
|
||||
alias: 'Umb.EntityAction.Media.Tree.ReloadTreeItemChildren',
|
||||
name: 'Reload Media Tree Item Children Entity Action',
|
||||
weight: 10,
|
||||
api: UmbReloadTreeItemChildrenEntityAction,
|
||||
meta: {
|
||||
icon: 'icon-refresh',
|
||||
label: 'Reload children...',
|
||||
repositoryAlias: 'Umb.Repository.Media.Tree',
|
||||
entityTypes: [UMB_MEDIA_ENTITY_TYPE, UMB_MEDIA_ROOT_ENTITY_TYPE],
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user