Skip to content

Commit

Permalink
[SG-590] Missing error messages (#3514)
Browse files Browse the repository at this point in the history
* added removed locale keys on clients

* resolved comments
  • Loading branch information
gbubemismith authored and shane-melton committed Sep 27, 2022
1 parent 48b9dea commit 5687900
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ResetPasswordComponent implements OnInit {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return false;
}
Expand All @@ -90,7 +90,7 @@ export class ResetPasswordComponent implements OnInit {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassLength")
this.i18nService.t("masterPasswordMinlength")
);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/settings/change-password.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/settings/update-key.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class UpdateKeyComponent {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions libs/angular/src/components/change-password.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ export class ChangePasswordComponent implements OnInit {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return false;
}
if (this.masterPassword.length < 8) {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassLength")
this.i18nService.t("masterPasswordMinlength")
);
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/angular/src/components/lock.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class LockComponent implements OnInit, OnDestroy {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/angular/src/components/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/angular/src/components/update-password.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class UpdatePasswordComponent extends BaseChangePasswordComponent {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("masterPassRequired")
this.i18nService.t("masterPasswordRequired")
);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class UserVerificationService implements UserVerificationServiceAbstracti
if (verification.type === VerificationType.OTP) {
throw new Error(this.i18nService.t("verificationCodeRequired"));
} else {
throw new Error(this.i18nService.t("masterPassRequired"));
throw new Error(this.i18nService.t("masterPasswordRequired"));
}
}
}
Expand Down

0 comments on commit 5687900

Please sign in to comment.