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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user