Browse Source

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

* added removed locale keys on clients

* resolved comments
pull/3541/head
Gbubemi Smith 3 years ago committed by GitHub
parent
commit
734f052faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/web/src/app/organizations/manage/reset-password.component.ts
  2. 2
      apps/web/src/app/settings/change-password.component.ts
  3. 2
      apps/web/src/app/settings/update-key.component.ts
  4. 4
      libs/angular/src/components/change-password.component.ts
  5. 2
      libs/angular/src/components/lock.component.ts
  6. 2
      libs/angular/src/components/login.component.ts
  7. 2
      libs/angular/src/components/update-password.component.ts
  8. 2
      libs/common/src/services/userVerification/userVerification.service.ts

4
apps/web/src/app/organizations/manage/reset-password.component.ts

@ -81,7 +81,7 @@ export class ResetPasswordComponent implements OnInit { @@ -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;
}
@ -90,7 +90,7 @@ export class ResetPasswordComponent implements OnInit { @@ -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;
}

2
apps/web/src/app/settings/change-password.component.ts

@ -139,7 +139,7 @@ export class ChangePasswordComponent extends BaseChangePasswordComponent { @@ -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;
}

2
apps/web/src/app/settings/update-key.component.ts

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

4
libs/angular/src/components/change-password.component.ts

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

2
libs/angular/src/components/lock.component.ts

@ -180,7 +180,7 @@ export class LockComponent implements OnInit, OnDestroy { @@ -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;
}

2
libs/angular/src/components/login.component.ts

@ -91,7 +91,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit @@ -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;
}

2
libs/angular/src/components/update-password.component.ts

@ -69,7 +69,7 @@ export class UpdatePasswordComponent extends BaseChangePasswordComponent { @@ -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;
}

2
libs/common/src/services/userVerification/userVerification.service.ts

@ -81,7 +81,7 @@ export class UserVerificationService implements UserVerificationServiceAbstracti @@ -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"));
}
}
}

Loading…
Cancel
Save