From c2ca6ea92e0e78f0ce44e0630f5f5921fae52c5f Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Thu, 12 Oct 2023 12:30:02 +0200 Subject: [PATCH] open change password modal from entity action --- .../change-user-password.action.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-actions/change-password/change-user-password.action.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-actions/change-password/change-user-password.action.ts index 249476d869..3b0f25b8f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-actions/change-password/change-user-password.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/entity-actions/change-password/change-user-password.action.ts @@ -1,8 +1,12 @@ +import { UmbChangeUserPasswordRepository } from '../../repository/change-password/change-user-password.repository.js'; import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action'; import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api'; import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api'; -import { type UmbModalManagerContext, UMB_MODAL_MANAGER_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/modal'; -import { UmbChangeUserPasswordRepository } from '../../repository/change-password/change-user-password.repository.js'; +import { + type UmbModalManagerContext, + UMB_MODAL_MANAGER_CONTEXT_TOKEN, + UMB_CHANGE_PASSWORD_MODAL, +} from '@umbraco-cms/backoffice/modal'; export class UmbChangeUserPasswordEntityAction extends UmbEntityActionBase { #modalManager?: UmbModalManagerContext; @@ -16,7 +20,14 @@ export class UmbChangeUserPasswordEntityAction extends UmbEntityActionBase { + this.repository?.changePassword(this.unique, data.newPassword); + }); } }