Website Summary Files Commits Branches @commit @diff @stats
path: root / src / app / components / profile-settings / profile-settings.component.ts
diff options
context:
space:
mode:
Commit1059b56781fdd6390c4c44fb00e99cc831971285 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-29 16:05:06 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-29 16:05:06 +0300
Files8e0d369df9837f99063cb917bf066dcad6f7d104 /src/app/components/profile-settings/profile-settings.component.ts
DevHive-Angular-1059b56781fdd6390c4c44fb00e99cc831971285.tar
DevHive-Angular-1059b56781fdd6390c4c44fb00e99cc831971285.tar.gz
DevHive-Angular-1059b56781fdd6390c4c44fb00e99cc831971285.zip
Parent0dd2a9ac545a8bdce63f403122503fef9510378c (diff)
Added show/hide button in profile settings confirm password field
1 files changed, 7 insertions, 0 deletions
-rw-r--r--src/app/components/profile-settings/profile-settings.component.ts7
diff --git a/src/app/components/profile-settings/profile-settings.component.ts b/src/app/components/profile-settings/profile-settings.component.ts
index 78a57ec..f329942 100644
--- a/src/app/components/profile-settings/profile-settings.component.ts
+++ b/src/app/components/profile-settings/profile-settings.component.ts
@@ -38,6 +38,7 @@ export class ProfileSettingsComponent implements OnInit {
public chosenTechnologies: Technology[];
public availableLanguages: Language[];
public availableTechnologies: Technology[];
+ public showCurrentPassword = false;
constructor(private _titleService: Title, private _router: Router, private _userService: UserService, private _languageService: LanguageService, private _technologyService: TechnologyService, private _tokenService: TokenService, private _fb: FormBuilder, private _location: Location) {
this._titleService.setTitle(this._title);
@@ -346,4 +347,10 @@ export class ProfileSettingsComponent implements OnInit {
this._router.onSameUrlNavigation = 'reload';
this._router.navigate([this._router.url]);
}
+
+ toggleShowPassword(index: number): void {
+ switch (index) {
+ case 0: this.showCurrentPassword = !this.showCurrentPassword;
+ }
+ }
}