1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00:00

[SG-590] Missing error messages (#3514)

* added removed locale keys on clients

* resolved comments
This commit is contained in:
Gbubemi Smith
2022-09-15 18:02:01 +01:00
committed by GitHub
parent ed78f7e7cb
commit 734f052faa
8 changed files with 10 additions and 10 deletions

View File

@@ -81,7 +81,7 @@ export class ResetPasswordComponent implements OnInit {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return false; return false;
} }
@@ -90,7 +90,7 @@ export class ResetPasswordComponent implements OnInit {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassLength") this.i18nService.t("masterPasswordMinlength")
); );
return false; return false;
} }

View File

@@ -139,7 +139,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return false; return false;
} }

View File

@@ -45,7 +45,7 @@ export class UpdateKeyComponent {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return; return;
} }

View File

@@ -97,7 +97,7 @@ export class ChangePasswordComponent implements OnInit {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return false; return false;
} }
@@ -105,7 +105,7 @@ export class ChangePasswordComponent implements OnInit {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassLength") this.i18nService.t("masterPasswordMinlength")
); );
return false; return false;
} }

View File

@@ -180,7 +180,7 @@ export class LockComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return; return;
} }

View File

@@ -91,7 +91,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return; return;
} }

View File

@@ -69,7 +69,7 @@ export class UpdatePasswordComponent extends BaseChangePasswordComponent {
this.platformUtilsService.showToast( this.platformUtilsService.showToast(
"error", "error",
this.i18nService.t("errorOccurred"), this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired") this.i18nService.t("masterPasswordRequired")
); );
return false; return false;
} }

View File

@@ -81,7 +81,7 @@ export class UserVerificationService implements UserVerificationServiceAbstracti
if (verification.type === VerificationType.OTP) { if (verification.type === VerificationType.OTP) {
throw new Error(this.i18nService.t("verificationCodeRequired")); throw new Error(this.i18nService.t("verificationCodeRequired"));
} else { } else {
throw new Error(this.i18nService.t("masterPassRequired")); throw new Error(this.i18nService.t("masterPasswordRequired"));
} }
} }
} }