mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
PM-1440 Fix showing multiple warnings (#5021)
This commit is contained in:
parent
c94508ccf2
commit
0bada56b82
@ -167,31 +167,33 @@ export class ChangePasswordComponent implements OnInit, OnDestroy {
|
|||||||
if (!result) {
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
if (weakPassword) {
|
if (weakPassword) {
|
||||||
const result = await this.platformUtilsService.showDialog(
|
const result = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t("weakMasterPasswordDesc"),
|
this.i18nService.t("weakMasterPasswordDesc"),
|
||||||
this.i18nService.t("weakMasterPassword"),
|
this.i18nService.t("weakMasterPassword"),
|
||||||
this.i18nService.t("yes"),
|
this.i18nService.t("yes"),
|
||||||
this.i18nService.t("no"),
|
this.i18nService.t("no"),
|
||||||
"warning"
|
"warning"
|
||||||
);
|
);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.leakedPassword) {
|
if (this.leakedPassword) {
|
||||||
const result = await this.platformUtilsService.showDialog(
|
const result = await this.platformUtilsService.showDialog(
|
||||||
this.i18nService.t("exposedMasterPasswordDesc"),
|
this.i18nService.t("exposedMasterPasswordDesc"),
|
||||||
this.i18nService.t("exposedMasterPassword"),
|
this.i18nService.t("exposedMasterPassword"),
|
||||||
this.i18nService.t("yes"),
|
this.i18nService.t("yes"),
|
||||||
this.i18nService.t("no"),
|
this.i18nService.t("no"),
|
||||||
"warning"
|
"warning"
|
||||||
);
|
);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user