lazy load apis
This commit is contained in:
@@ -16,3 +16,5 @@ export class UmbConfigureExternalLoginProvidersApi<ArgsMetaType = never>
|
||||
await modalManagerContext.open(this, UMB_CURRENT_USER_EXTERNAL_LOGIN_MODAL).onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbConfigureExternalLoginProvidersApi as api };
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UmbConfigureExternalLoginProvidersApi } from './configure-external-login-providers-action.js';
|
||||
import type { ManifestCurrentUserActionDefaultKind, ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const modals: Array<ManifestModal> = [
|
||||
@@ -17,7 +16,7 @@ export const userProfileApps: Array<ManifestCurrentUserActionDefaultKind> = [
|
||||
alias: 'Umb.CurrentUser.App.ExternalLoginProviders',
|
||||
name: 'External Login Providers Current User App',
|
||||
weight: 700,
|
||||
api: UmbConfigureExternalLoginProvidersApi,
|
||||
api: () => import('./configure-external-login-providers-action.js'),
|
||||
meta: {
|
||||
label: '#defaultdialogs_externalLoginProviders',
|
||||
icon: 'icon-lock',
|
||||
|
||||
@@ -16,3 +16,5 @@ export class UmbConfigureMfaProvidersApi<ArgsMetaType = never>
|
||||
await modalManagerContext.open(this, UMB_CURRENT_USER_MFA_MODAL).onSubmit();
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbConfigureMfaProvidersApi as api };
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { UmbConfigureMfaProvidersApi } from './configure-mfa-providers-action.js';
|
||||
import type { ManifestCurrentUserActionDefaultKind, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const userProfileApps: Array<ManifestCurrentUserActionDefaultKind> = [
|
||||
@@ -8,7 +7,7 @@ export const userProfileApps: Array<ManifestCurrentUserActionDefaultKind> = [
|
||||
alias: 'Umb.CurrentUser.App.MfaLoginProviders',
|
||||
name: 'MFA Login Providers Current User App',
|
||||
weight: 800,
|
||||
api: UmbConfigureMfaProvidersApi,
|
||||
api: () => import('./configure-mfa-providers-action.js'),
|
||||
meta: {
|
||||
label: '#user_configureTwoFactor',
|
||||
icon: 'icon-rectangle-ellipsis',
|
||||
|
||||
@@ -41,3 +41,5 @@ export class UmbChangePasswordCurrentUserAction<ArgsMetaType = never>
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbChangePasswordCurrentUserAction as api };
|
||||
|
||||
@@ -36,3 +36,5 @@ export class UmbEditCurrentUserAction<ArgsMetaType = never>
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
export { UmbEditCurrentUserAction as api };
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import { UmbChangePasswordCurrentUserAction } from './change-password-current-user.action.js';
|
||||
import { UmbEditCurrentUserAction } from './edit-current-user.action.js';
|
||||
import type {
|
||||
ManifestCurrentUserActionDefaultKind,
|
||||
ManifestTypes,
|
||||
@@ -27,7 +25,7 @@ const currentUserActions: Array<ManifestCurrentUserActionDefaultKind> = [
|
||||
alias: 'Umb.CurrentUser.Button.Edit',
|
||||
name: 'Current User Edit Button',
|
||||
weight: 1000,
|
||||
api: UmbEditCurrentUserAction,
|
||||
api: () => import('./edit-current-user.action.js'),
|
||||
meta: {
|
||||
label: '#general_edit',
|
||||
icon: 'edit',
|
||||
@@ -45,7 +43,7 @@ const currentUserActions: Array<ManifestCurrentUserActionDefaultKind> = [
|
||||
alias: 'Umb.CurrentUser.Button.ChangePassword',
|
||||
name: 'Current User Change Password Button',
|
||||
weight: 900,
|
||||
api: UmbChangePasswordCurrentUserAction,
|
||||
api: () => import('./change-password-current-user.action.js'),
|
||||
meta: {
|
||||
label: '#general_changePassword',
|
||||
icon: 'lock',
|
||||
|
||||
Reference in New Issue
Block a user