Skip to content

Commit

Permalink
Merge pull request #407 from Sunbird-RC/esignIssue
Browse files Browse the repository at this point in the history
Error Toast message time increased
  • Loading branch information
Pratikshakhandagale authored Aug 24, 2023
2 parents 8112d93 + 9412099 commit 561a2e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion donor-registry/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ let configData = {
ToastrModule.forRoot({
positionClass: 'toast-top-full-width',
preventDuplicates: true,
timeOut: 50000,
timeOut: 70000,
enableHtml: true,
maxOpened: 1
}),
Expand Down
8 changes: 4 additions & 4 deletions donor-registry/src/app/forms/forms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2376,12 +2376,12 @@ export class FormsComponent implements OnInit {
if (err?.code === "2") {
checkESignStatus = false;
let errMsg = err?.errors.join(", <br>");
this.toastMsg.error("Error", errMsg, 50000);
this.toastMsg.error("Error", errMsg);
} else if (err.code === "3") {
if (err?.preventThirdParty === true) {
checkESignStatus = false;
let errMsg = err?.errors.join(", <br>");
this.toastMsg.error("Error", errMsg, 50000);
this.toastMsg.error("Error", errMsg);
}
}
console.log(err);
Expand Down Expand Up @@ -2533,12 +2533,12 @@ export class FormsComponent implements OnInit {
if (err?.code === "2") {
checkESignStatus = false;
let errMsg = err?.errors.join(", <br>");
this.toastMsg.error("Error", errMsg, 50000);
this.toastMsg.error("Error", errMsg);
} else if (err.code === "3") {
if (err?.preventThirdParty === true) {
checkESignStatus = false;
let errMsg = err?.errors.join(", <br>");
this.toastMsg.error("Error", errMsg, 50000);
this.toastMsg.error("Error", errMsg);
}
}
console.log(err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ToastMessageService {
this.toastr.success(message, title);
}

error(title, message, duration = 3000) {
error(title, message, duration = 70000) {
this.destroytoast();
this.toastr.error(message, title, { timeOut: duration });
}
Expand Down

0 comments on commit 561a2e7

Please sign in to comment.