Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SG-590] Missing error messages #3514

Merged
merged 5 commits into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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