Skip to content

Commit f636604

Browse files
committed
split into folders
1 parent cf1a1f6 commit f636604

File tree

8 files changed

+35
-27
lines changed

8 files changed

+35
-27
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { UMB_USER_ENTITY_TYPE } from '@umbraco-cms/backoffice/user';
2+
3+
export const manifests: Array<UmbExtensionManifest> = [
4+
{
5+
type: 'entityAction',
6+
kind: 'default',
7+
alias: 'Umb.EntityAction.User.ChangePassword',
8+
name: 'Change User Password Entity Action',
9+
weight: 600,
10+
api: () => import('./change-user-password.action.js'),
11+
forEntityTypes: [UMB_USER_ENTITY_TYPE],
12+
meta: {
13+
icon: 'icon-key',
14+
label: '#user_changePassword',
15+
},
16+
conditions: [
17+
{
18+
alias: 'Umb.Condition.User.AllowChangePassword',
19+
},
20+
],
21+
},
22+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './modal/index.js';
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
import { UMB_USER_ENTITY_TYPE } from '@umbraco-cms/backoffice/user';
1+
import { manifests as entityActionManifests } from './entity-action/manifests.js';
2+
import { manifests as modalManifests } from './modal/manifests.js';
23

3-
export const manifests: Array<UmbExtensionManifest> = [
4-
{
5-
type: 'entityAction',
6-
kind: 'default',
7-
alias: 'Umb.EntityAction.User.ChangePassword',
8-
name: 'Change User Password Entity Action',
9-
weight: 600,
10-
api: () => import('./change-user-password.action.js'),
11-
forEntityTypes: [UMB_USER_ENTITY_TYPE],
12-
meta: {
13-
icon: 'icon-key',
14-
label: '#user_changePassword',
15-
},
16-
conditions: [
17-
{
18-
alias: 'Umb.Condition.User.AllowChangePassword',
19-
},
20-
],
21-
},
22-
{
23-
type: 'modal',
24-
alias: 'Umb.Modal.ChangePassword',
25-
name: 'Change Password Modal',
26-
js: () => import('./change-password-modal.element.js'),
27-
},
28-
];
4+
export const manifests: Array<UmbExtensionManifest> = [...entityActionManifests, ...modalManifests];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './change-password-modal.token.js';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export const manifests: Array<UmbExtensionManifest> = [
2+
{
3+
type: 'modal',
4+
alias: 'Umb.Modal.ChangePassword',
5+
name: 'Change Password Modal',
6+
js: () => import('./change-password-modal.element.js'),
7+
},
8+
];

0 commit comments

Comments
 (0)