combine change password files in same folder
This commit is contained in:
committed by
Jacob Overgaard
parent
4a1e9ad7d1
commit
33436f5d4a
@@ -1,4 +1,4 @@
|
||||
import { UmbChangeUserPasswordRepository } from '../../repository/index.js';
|
||||
import { UmbChangeUserPasswordRepository } from '@umbraco-cms/backoffice/user';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import type { UmbEntityActionArgs } from '@umbraco-cms/backoffice/entity-action';
|
||||
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
|
||||
@@ -0,0 +1,24 @@
|
||||
import type { ManifestTypes, UmbBackofficeManifestKind } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { UMB_USER_ENTITY_TYPE } from '@umbraco-cms/backoffice/user';
|
||||
|
||||
export const manifests: Array<ManifestTypes | UmbBackofficeManifestKind> = [
|
||||
{
|
||||
type: 'entityAction',
|
||||
kind: 'default',
|
||||
alias: 'Umb.EntityAction.User.ChangePassword',
|
||||
name: 'Change User Password Entity Action',
|
||||
weight: 600,
|
||||
api: () => import('./change-user-password.action.js'),
|
||||
forEntityTypes: [UMB_USER_ENTITY_TYPE],
|
||||
meta: {
|
||||
icon: 'icon-key',
|
||||
label: '#user_changePassword',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.ChangePassword',
|
||||
name: 'Change Password Modal',
|
||||
js: () => import('./change-password-modal.element.js'),
|
||||
},
|
||||
];
|
||||
@@ -3,7 +3,7 @@ import { manifests as userManifests } from './user/manifests.js';
|
||||
import { manifests as userSectionManifests } from './user-section/manifests.js';
|
||||
import { manifests as currentUserManifests } from './current-user/manifests.js';
|
||||
import { manifests as userPermissionManifests } from './user-permission/manifests.js';
|
||||
import { manifests as modalManifests } from './modals/manifests.js';
|
||||
import { manifests as changePasswordManifests } from './change-password/manifests.js';
|
||||
|
||||
// We need to load any components that are not loaded by the user management bundle to register them in the browser.
|
||||
import './user-group/components/index.js';
|
||||
@@ -16,5 +16,5 @@ export const manifests = [
|
||||
...userSectionManifests,
|
||||
...currentUserManifests,
|
||||
...userPermissionManifests,
|
||||
...modalManifests,
|
||||
...changePasswordManifests,
|
||||
];
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import type { ManifestModal, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const modals: Array<ManifestModal> = [
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.ChangePassword',
|
||||
name: 'Change Password Modal',
|
||||
js: () => import('./change-password/change-password-modal.element.js'),
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests: Array<ManifestTypes> = [...modals];
|
||||
@@ -55,19 +55,6 @@ const entityActions: Array<ManifestTypes> = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
kind: 'default',
|
||||
alias: 'Umb.EntityAction.User.ChangePassword',
|
||||
name: 'Change User Password Entity Action',
|
||||
weight: 600,
|
||||
api: () => import('./change-password/change-user-password.action.js'),
|
||||
forEntityTypes: [UMB_USER_ENTITY_TYPE],
|
||||
meta: {
|
||||
icon: 'icon-key',
|
||||
label: '#user_changePassword',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'entityAction',
|
||||
kind: 'default',
|
||||
|
||||
Reference in New Issue
Block a user