@fluxhub/fluxhub-lib 11.0.50 → 11.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4588,9 +4588,12 @@
4588
4588
  if (obj_r != null)
4589
4589
  if (obj_r.msg != null)
4590
4590
  if (obj_r.msg != '') {
4591
- if (obj_r.result_msg == 'KO')
4592
- this.toastr.error(obj_r.msg);
4593
- if (obj_r.result_msg == 'OK')
4591
+ if (obj_r.result_msg == 'KO' || obj_r.msg.indexOf('KO') > -1)
4592
+ this.toastr.error(obj_r.msg, 'Error', {
4593
+ timeOut: 5000,
4594
+ positionClass: "toast-center-center",
4595
+ });
4596
+ else
4594
4597
  this.toastr.info(obj_r.msg);
4595
4598
  }
4596
4599
  };