@churchillliving/se-ui-toolkit 6.53.109 → 6.53.110

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.
@@ -529,16 +529,17 @@
529
529
  if (time === void 0) { time = 5000; }
530
530
  this.toastr.error(error, message, { closeButton: true, timeOut: time });
531
531
  };
532
- AlertService.prototype.apiError = function (error) {
532
+ AlertService.prototype.apiError = function (error, time) {
533
+ if (time === void 0) { time = 5000; }
533
534
  if (typeof error === 'string' || typeof error.error === 'string') {
534
- typeof error.error === 'string' ? this.error(error.error) : this.error(error);
535
+ typeof error.error === 'string' ? this.error(error.error, time) : this.error(error, time);
535
536
  }
536
537
  else if (error && error.error && error.error.errorDetails) {
537
538
  var _a = __read(error.error.errorDetails, 1), responseError = _a[0];
538
- this.error(responseError.errorMessage);
539
+ this.error(responseError.errorMessage, time);
539
540
  }
540
541
  else if (error && error.headers && error.status !== 401) {
541
- this.error('something went wrong during api request');
542
+ this.error('something went wrong during api request', time);
542
543
  }
543
544
  };
544
545
  AlertService.prototype.confirm = function (_a) {