1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-15 07:43:27 +00:00

Add visibility toggle to secrets

Added visibility toggle to login and directory secrets
This commit is contained in:
Luc
2021-06-08 15:53:44 -07:00
parent 56d05af07a
commit a6aafe7593
4 changed files with 66 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ export class ApiKeyComponent {
formPromise: Promise<any>;
successRoute = '/tabs/dashboard';
showSecret: boolean = false;
constructor(private authService: AuthService, private apiKeyService: ApiKeyService, private router: Router,
private i18nService: I18nService, private componentFactoryResolver: ComponentFactoryResolver,
@@ -77,4 +78,8 @@ export class ApiKeyComponent {
modal.close();
});
}
toggleSecret() {
this.showSecret = !this.showSecret;
document.getElementById('clientSecret').focus();
}
}