@churchillliving/se-ui-toolkit 6.53.109 → 6.53.111
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.
- package/bundles/churchillliving-se-ui-toolkit.umd.js +9 -6
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +5 -3
- package/esm2015/lib/services/alert.service.js +5 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js +8 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/alert.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
|
@@ -3305,7 +3306,7 @@
|
|
|
3305
3306
|
this.editingRowKeys = {};
|
|
3306
3307
|
// Selects items in the grid based on passed on data
|
|
3307
3308
|
this.selectedRows = [];
|
|
3308
|
-
this.setGridRefreshTime =
|
|
3309
|
+
this.setGridRefreshTime = 0;
|
|
3309
3310
|
this.addDataKeyValue = false;
|
|
3310
3311
|
this.globalData = [];
|
|
3311
3312
|
this.sortDisabled = false;
|
|
@@ -3555,7 +3556,9 @@
|
|
|
3555
3556
|
GridComponent.prototype.ngOnInit = function () {
|
|
3556
3557
|
var _this = this;
|
|
3557
3558
|
// automatically reload grid after 9 seconds.
|
|
3558
|
-
this.
|
|
3559
|
+
if (this.setGridRefreshTime) {
|
|
3560
|
+
this.refreshGrid();
|
|
3561
|
+
}
|
|
3559
3562
|
if (this.editAllRows) {
|
|
3560
3563
|
this.disabledSaveBtn = true;
|
|
3561
3564
|
}
|