mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-20 02:01:47 +01:00
PM-8113 - TwoFactorAuthComponent - Add type for providerData
This commit is contained in:
parent
7235b37b85
commit
4a60ae2736
@ -84,7 +84,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
|||||||
providers = TwoFactorProviders;
|
providers = TwoFactorProviders;
|
||||||
providerType = TwoFactorProviderType;
|
providerType = TwoFactorProviderType;
|
||||||
selectedProviderType: TwoFactorProviderType = TwoFactorProviderType.Authenticator;
|
selectedProviderType: TwoFactorProviderType = TwoFactorProviderType.Authenticator;
|
||||||
providerData: any;
|
providerData: { [key: string]: string }; // TODO: build more specific type
|
||||||
|
|
||||||
@ViewChild("duoComponent") duoComponent!: TwoFactorAuthDuoComponent;
|
@ViewChild("duoComponent") duoComponent!: TwoFactorAuthDuoComponent;
|
||||||
|
|
||||||
@ -155,6 +155,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
|||||||
return providers.get(this.selectedProviderType);
|
return providers.get(this.selectedProviderType);
|
||||||
});
|
});
|
||||||
this.providerData = providerData;
|
this.providerData = providerData;
|
||||||
|
|
||||||
await this.setTitleByTwoFactorProvider();
|
await this.setTitleByTwoFactorProvider();
|
||||||
|
|
||||||
this.form.valueChanges.pipe(takeUntilDestroyed()).subscribe((value) => {
|
this.form.valueChanges.pipe(takeUntilDestroyed()).subscribe((value) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user