@sumaris-net/ngx-components 1.20.22 → 1.20.23
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/sumaris-net.ngx-components.umd.js +8 -6
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/entity-editor-modal.class.js +3 -2
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +1 -2
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +7 -5
- package/fesm2015/sumaris-net.ngx-components.js +8 -6
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -23868,7 +23868,6 @@
|
|
|
23868
23868
|
};
|
|
23869
23869
|
AppInstallUpgradeCard.prototype.ngOnDestroy = function () {
|
|
23870
23870
|
this._subscription.unsubscribe();
|
|
23871
|
-
this._subscription = null;
|
|
23872
23871
|
this.installLinks = null;
|
|
23873
23872
|
this.upgradeLinks = null;
|
|
23874
23873
|
};
|
|
@@ -25647,9 +25646,7 @@
|
|
|
25647
25646
|
this._fetchMoreFn = null;
|
|
25648
25647
|
this.markAsLoading();
|
|
25649
25648
|
return this.dataService.watchAll(offset, size, sortBy, sortDirection, filter, this.serviceOptions)
|
|
25650
|
-
.pipe(
|
|
25651
|
-
// Stop this pipe next time we call watchAll()
|
|
25652
|
-
operators.takeUntil(this._stopWatching$), operators.catchError(function (err) { return _this.handleError(err, 'ERROR.LOAD_DATA_ERROR'); }), operators.map(function (res) {
|
|
25649
|
+
.pipe(operators.catchError(function (err) { return _this.handleError(err, 'ERROR.LOAD_DATA_ERROR'); }), operators.map(function (res) {
|
|
25653
25650
|
if (_this._saving) {
|
|
25654
25651
|
console.info("[table-datasource] Received " + _this._logTypeName + " data (from service), but still saving: skip");
|
|
25655
25652
|
}
|
|
@@ -25661,7 +25658,11 @@
|
|
|
25661
25658
|
_this._fetchMoreFn = res.fetchMore;
|
|
25662
25659
|
}
|
|
25663
25660
|
return res;
|
|
25664
|
-
})
|
|
25661
|
+
}),
|
|
25662
|
+
// Stop this pipe next time we call watchAll()
|
|
25663
|
+
operators.takeUntil(this._stopWatching$)
|
|
25664
|
+
// ⚠ Notice: Don't put any operator after takeUntil to avoid potential subscription leaks
|
|
25665
|
+
);
|
|
25665
25666
|
};
|
|
25666
25667
|
EntitiesTableDataSource.prototype.save = function () {
|
|
25667
25668
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -29601,11 +29602,12 @@
|
|
|
29601
29602
|
return [3 /*break*/, 5];
|
|
29602
29603
|
case 3:
|
|
29603
29604
|
err_1 = _b.sent();
|
|
29605
|
+
if (err_1 === 'CANCELLED')
|
|
29606
|
+
return [2 /*return*/];
|
|
29604
29607
|
this.setError(err_1);
|
|
29605
29608
|
this.selectedTabIndex = 0;
|
|
29606
29609
|
return [3 /*break*/, 5];
|
|
29607
29610
|
case 4:
|
|
29608
|
-
this.markAsPristine();
|
|
29609
29611
|
this.markAsLoaded();
|
|
29610
29612
|
return [7 /*endfinally*/];
|
|
29611
29613
|
case 5: return [2 /*return*/];
|