mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
[PS-1147] Added target to 2FA disable confirmation popup (#4242)
This commit is contained in:
parent
e3f31ac741
commit
a09f0ed534
@ -41,6 +41,7 @@ export class TwoFactorAuthenticatorComponent
|
|||||||
token: string;
|
token: string;
|
||||||
formPromise: Promise<TwoFactorAuthenticatorResponse>;
|
formPromise: Promise<TwoFactorAuthenticatorResponse>;
|
||||||
|
|
||||||
|
override componentName = "app-two-factor-authenticator";
|
||||||
private qrScript: HTMLScriptElement;
|
private qrScript: HTMLScriptElement;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -23,6 +23,7 @@ export abstract class TwoFactorBaseComponent {
|
|||||||
|
|
||||||
protected hashedSecret: string;
|
protected hashedSecret: string;
|
||||||
protected verificationType: VerificationType;
|
protected verificationType: VerificationType;
|
||||||
|
protected componentName = "";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected apiService: ApiService,
|
protected apiService: ApiService,
|
||||||
@ -53,7 +54,9 @@ export abstract class TwoFactorBaseComponent {
|
|||||||
this.i18nService.t("disable"),
|
this.i18nService.t("disable"),
|
||||||
this.i18nService.t("yes"),
|
this.i18nService.t("yes"),
|
||||||
this.i18nService.t("no"),
|
this.i18nService.t("no"),
|
||||||
"warning"
|
"warning",
|
||||||
|
false,
|
||||||
|
this.componentName != "" ? this.componentName + " .modal-content" : null
|
||||||
);
|
);
|
||||||
if (!confirmed) {
|
if (!confirmed) {
|
||||||
return;
|
return;
|
||||||
|
@ -23,6 +23,8 @@ export class TwoFactorDuoComponent extends TwoFactorBaseComponent {
|
|||||||
host: string;
|
host: string;
|
||||||
formPromise: Promise<TwoFactorDuoResponse>;
|
formPromise: Promise<TwoFactorDuoResponse>;
|
||||||
|
|
||||||
|
override componentName = "app-two-factor-duo";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
apiService: ApiService,
|
apiService: ApiService,
|
||||||
i18nService: I18nService,
|
i18nService: I18nService,
|
||||||
|
@ -26,6 +26,8 @@ export class TwoFactorEmailComponent extends TwoFactorBaseComponent {
|
|||||||
formPromise: Promise<TwoFactorEmailResponse>;
|
formPromise: Promise<TwoFactorEmailResponse>;
|
||||||
emailPromise: Promise<unknown>;
|
emailPromise: Promise<unknown>;
|
||||||
|
|
||||||
|
override componentName = "app-two-factor-email";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
apiService: ApiService,
|
apiService: ApiService,
|
||||||
i18nService: I18nService,
|
i18nService: I18nService,
|
||||||
|
@ -41,6 +41,8 @@ export class TwoFactorWebAuthnComponent extends TwoFactorBaseComponent {
|
|||||||
challengePromise: Promise<ChallengeResponse>;
|
challengePromise: Promise<ChallengeResponse>;
|
||||||
formPromise: Promise<TwoFactorWebAuthnResponse>;
|
formPromise: Promise<TwoFactorWebAuthnResponse>;
|
||||||
|
|
||||||
|
override componentName = "app-two-factor-webauthn";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
apiService: ApiService,
|
apiService: ApiService,
|
||||||
i18nService: I18nService,
|
i18nService: I18nService,
|
||||||
|
@ -29,6 +29,8 @@ export class TwoFactorYubiKeyComponent extends TwoFactorBaseComponent {
|
|||||||
formPromise: Promise<TwoFactorYubiKeyResponse>;
|
formPromise: Promise<TwoFactorYubiKeyResponse>;
|
||||||
disablePromise: Promise<unknown>;
|
disablePromise: Promise<unknown>;
|
||||||
|
|
||||||
|
override componentName = "app-two-factor-yubikey";
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
apiService: ApiService,
|
apiService: ApiService,
|
||||||
i18nService: I18nService,
|
i18nService: I18nService,
|
||||||
|
Loading…
Reference in New Issue
Block a user