From e9c7e7623f171ec3ec866f423089762e16b8129b Mon Sep 17 00:00:00 2001 From: erdemcaygor Date: Tue, 6 May 2025 11:47:15 +0300 Subject: [PATCH] refactoring --- .../change-password.component.ts | 7 +++---- .../forgot-password.component.html | 2 +- .../forgot-password.component.ts | 15 +++++++++++---- .../src/lib/components/login/login.component.ts | 15 +++++++++++---- .../manage-profile/manage-profile.component.ts | 16 +++++++++++++--- .../personal-settings.component.ts | 16 +++++++++++----- .../components/register/register.component.ts | 15 +++++++++++---- .../reset-password/reset-password.component.ts | 17 +++++++++++------ .../core/src/lib/localization.module.ts | 4 ++-- 9 files changed, 74 insertions(+), 33 deletions(-) diff --git a/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts b/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts index 3d289b5068..95ec5919e7 100644 --- a/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts +++ b/npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts @@ -1,5 +1,5 @@ import { ProfileService } from '@abp/ng.account.core/proxy'; -import { getPasswordValidators, ThemeSharedModule, ToasterService } from '@abp/ng.theme.shared'; +import { ButtonComponent, getPasswordValidators, ToasterService } from '@abp/ng.theme.shared'; import { Component, Injector, OnInit } from '@angular/core'; import { ReactiveFormsModule, @@ -12,8 +12,7 @@ import { comparePasswords, Validation } from '@ngx-validate/core'; import { finalize } from 'rxjs/operators'; import { Account } from '../../models/account'; import { ManageProfileStateService } from '../../services/manage-profile.state.service'; -import { CoreModule } from '@abp/ng.core'; -import { CommonModule } from '@angular/common'; +import { LocalizationPipe } from '@abp/ng.core'; const { required } = Validators; @@ -23,7 +22,7 @@ const PASSWORD_FIELDS = ['newPassword', 'repeatNewPassword']; selector: 'abp-change-password-form', templateUrl: './change-password.component.html', exportAs: 'abpChangePasswordForm', - imports: [CommonModule, ReactiveFormsModule, CoreModule, ThemeSharedModule], + imports: [ReactiveFormsModule, LocalizationPipe, ButtonComponent, NgxValidateCoreModule], }) export class ChangePasswordComponent implements OnInit, Account.ChangePasswordComponentInputs, Account.ChangePasswordComponentOutputs diff --git a/npm/ng-packs/packages/account/src/lib/components/forgot-password/forgot-password.component.html b/npm/ng-packs/packages/account/src/lib/components/forgot-password/forgot-password.component.html index 248faae625..90ad0254af 100644 --- a/npm/ng-packs/packages/account/src/lib/components/forgot-password/forgot-password.component.html +++ b/npm/ng-packs/packages/account/src/lib/components/forgot-password/forgot-password.component.html @@ -1,7 +1,7 @@

{{ 'AbpAccount::ForgotPassword' | abpLocalization }}

@if (!isEmailSent) { -
+

{{ 'AbpAccount::SendPasswordResetLink_Information' | abpLocalization }}