Add password toggle to add-edit (#261)
This commit is contained in:
parent
deabffb7b0
commit
22f576ea60
|
@ -42,6 +42,7 @@ export class AddEditComponent implements OnInit {
|
||||||
expirationDate: string;
|
expirationDate: string;
|
||||||
hasPassword: boolean;
|
hasPassword: boolean;
|
||||||
password: string;
|
password: string;
|
||||||
|
showPassword = false;
|
||||||
formPromise: Promise<any>;
|
formPromise: Promise<any>;
|
||||||
deletePromise: Promise<any>;
|
deletePromise: Promise<any>;
|
||||||
sendType = SendType;
|
sendType = SendType;
|
||||||
|
@ -248,4 +249,9 @@ export class AddEditComponent implements OnInit {
|
||||||
protected dateToString(d: Date) {
|
protected dateToString(d: Date) {
|
||||||
return d == null ? null : this.datePipe.transform(d, 'yyyy-MM-ddTHH:mm');
|
return d == null ? null : this.datePipe.transform(d, 'yyyy-MM-ddTHH:mm');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected togglePasswordVisible() {
|
||||||
|
this.showPassword = !this.showPassword;
|
||||||
|
document.getElementById('password').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue