Skip to content

Commit 0898a75

Browse files
committed
lazy load create action
1 parent a177469 commit 0898a75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/packages/language/entity-actions/language-create-entity-action.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ export class UmbLanguageCreateEntityAction extends UmbEntityActionBase<never> {
1212
history.pushState(null, '', `section/settings/workspace/language/create`);
1313
}
1414
}
15+
16+
export { UmbLanguageCreateEntityAction as api };

src/packages/language/entity-actions/manifests.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { UMB_LANGUAGE_DETAIL_REPOSITORY_ALIAS, UMB_LANGUAGE_ITEM_REPOSITORY_ALIAS } from '../repository/index.js';
22
import { UMB_LANGUAGE_ENTITY_TYPE, UMB_LANGUAGE_ROOT_ENTITY_TYPE } from '../entity.js';
3-
import { UmbLanguageCreateEntityAction } from './language-create-entity-action.js';
43
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
54

65
const entityActions: Array<ManifestTypes> = [
@@ -21,7 +20,7 @@ const entityActions: Array<ManifestTypes> = [
2120
alias: 'Umb.EntityAction.Language.Create',
2221
name: 'Create Language Entity Action',
2322
weight: 1200,
24-
api: UmbLanguageCreateEntityAction,
23+
api: () => import('./language-create-entity-action.js'),
2524
forEntityTypes: [UMB_LANGUAGE_ROOT_ENTITY_TYPE],
2625
meta: {
2726
icon: 'icon-add',

0 commit comments

Comments
 (0)