Skip to content

Commit d45175b

Browse files
committed
Issue #385 - self-review and code cleanup
1 parent eb834b4 commit d45175b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

angular/src/app/users/change-password/change-password.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
33
<div class="card main-content">
44
<div class="header">
5-
<h2>Update Password</h2>
5+
<h2>{{ "UpdatePassword" | localize }}</h2>
66
</div>
77
<div class="body table-responsive" #body>
88
<form novalidate (ngSubmit)="updatePassword(parentFormGroup.value)">

angular/src/app/users/change-password/change-password.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ErrorStateMatcher } from '@angular/material';
1010
export class FormGroupErrorStateMatcher implements ErrorStateMatcher {
1111
constructor(private formGroup: FormGroup) { }
1212

13-
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
13+
public isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
1414
return control && control.dirty && control.touched && this.formGroup && this.formGroup.errors && this.formGroup.errors.areEqual;
1515
}
1616
}
@@ -20,7 +20,6 @@ export class FormGroupErrorStateMatcher implements ErrorStateMatcher {
2020
templateUrl: './change-password.component.html'
2121
})
2222
export class ChangePasswordComponent extends AppComponentBase implements OnInit {
23-
@ViewChild('body') bodyElement: ElementRef;
2423
public parentFormGroup: FormGroup;
2524
public passwordsFormGroup: FormGroup;
2625
public isLoading: boolean;
@@ -43,7 +42,7 @@ export class ChangePasswordComponent extends AppComponentBase implements OnInit
4342
super(injector);
4443
}
4544

46-
ngOnInit() {
45+
public ngOnInit() {
4746
this.isLoading = true;
4847

4948
this.passwordsFormGroup = new FormGroup({

angular/src/app/users/reset-password/reset-password.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export class ResetPasswordDialogComponent extends AppComponentBase
3636
}
3737

3838
public resetPassword(): void {
39-
debugger;
4039
this.isLoading = true;
4140
this._userService
4241
.resetPassword(this.resetPasswordDto)

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Localization/SourceFiles/AbpProjectName.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<text name="UserNameOrEmail" value="User name or email" />
1818
<text name="Password" value="Password" />
1919
<text name="ResetPassword" value="Reset Password" />
20+
<text name="UpdatePassword" value="Update Password" />
2021
<text name="RememberMe" value="Remember me" />
2122
<text name="LogIn" value="Log in" />
2223
<text name="LoginFailed" value="Login failed!" />

0 commit comments

Comments
 (0)