|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { Component, ViewChild } from '@angular/core';
|
|
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
|
import { PasswordHideShowComponent } from '../../shared/components/password-hide-show/password-hide-show.component';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-change-password',
|
|
|
|
|
imports: [TranslateModule, FormsModule, ReactiveFormsModule, CommonModule, PasswordHideShowComponent],
|
|
|
|
|
templateUrl: './change-password.component.html',
|
|
|
|
|
styleUrl: './change-password.component.scss'
|
|
|
|
|
})
|
|
|
|
|
export class ChangePasswordComponent {
|
|
|
|
|
passwordType: string = 'password';
|
|
|
|
|
passwordType1: string = 'password';
|
|
|
|
|
passwordType2: string = 'password';
|
|
|
|
|
|
|
|
|
|
@ViewChild('psh') passwordHideShow?: PasswordHideShowComponent;
|
|
|
|
|
@ViewChild('psh1') passwordHideShow1 ?: PasswordHideShowComponent;
|
|
|
|
|
@ViewChild('psh2') passwordHideShow2 ?: PasswordHideShowComponent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
togglePasswordType() {
|
|
|
|
|
this.passwordType = this.passwordHideShow?.showPassword ? 'password' : 'text';
|
|
|
|
|
}
|
|
|
|
|
togglePasswordType1() {
|
|
|
|
|
this.passwordType1 = this.passwordHideShow1?.showPassword ? 'password' : 'text';
|
|
|
|
|
}
|
|
|
|
|
togglePasswordType2() {
|
|
|
|
|
this.passwordType2 = this.passwordHideShow2?.showPassword ? 'password' : 'text';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|