feedback setup update

feedback setup update
mazdak/UX-1350
Mazdak Gibran 3 days ago
parent 7228790cc8
commit b0f8311a2c

@ -77,10 +77,10 @@
class="mandatory">*</span> class="mandatory">*</span>
</label> </label>
<div class="password-wrapper position-relative w-100"> <div class="password-wrapper position-relative w-100">
<input id="confirmPassword" class="form-control" type="{{passwordType1}}" <input id="confirmPassword" class="form-control" type="{{confirmPasswordType}}"
placeholder="{{ 'confirmPassword' | translate }}" appNoWhitespaces /> placeholder="{{ 'confirmPassword' | translate }}" appNoWhitespaces />
<app-password-hide-show #psh1 class="password-eye align-items-stretch" [showPassword]="true" <app-password-hide-show #cpsh class="password-eye align-items-stretch" [showPassword]="true"
(onEyeClick)="togglePasswordType1()"></app-password-hide-show> (onEyeClick)="toggleConfirmPasswordType()"></app-password-hide-show>
<!-- <div class="text-danger"> <!-- <div class="text-danger">
<div> <div>

@ -14,15 +14,15 @@ import { PasswordHideShowComponent } from '../../shared/components/password-hide
}) })
export class FeedbackSetupComponent { export class FeedbackSetupComponent {
@ViewChild('psh') passwordHideShow ?: PasswordHideShowComponent @ViewChild('psh') passwordHideShow ?: PasswordHideShowComponent
@ViewChild('psh1') passwordHideShow1 ?: PasswordHideShowComponent @ViewChild('cpsh') confirmPasswordHideShow ?: PasswordHideShowComponent
passwordType: string = 'password'; passwordType: string = 'password';
passwordType1: string = 'password'; confirmPasswordType: string = 'password';
togglePasswordType(){ togglePasswordType(){
this.passwordType = this.passwordHideShow?.showPassword ? 'password' : 'text'; this.passwordType = this.passwordHideShow?.showPassword ? 'password' : 'text';
} }
togglePasswordType1(){ toggleConfirmPasswordType(){
this.passwordType1 = this.passwordHideShow1?.showPassword ? 'password' : 'text'; this.confirmPasswordType = this.confirmPasswordHideShow?.showPassword ? 'password' : 'text';
} }
} }

Loading…
Cancel
Save