@sumaris-net/ngx-components 1.19.15-rc1 → 1.19.15-rc2

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.
@@ -26075,8 +26075,7 @@
26075
26075
  if (!this.confirmEditCreate(event, row)) {
26076
26076
  // If pending: Wait end of validation, then loop
26077
26077
  if ((_a = row.validator) === null || _a === void 0 ? void 0 : _a.pending) {
26078
- AppFormUtils.waitWhilePending(row.validator).then(function () { return _this.confirmAndForward(event, row); });
26079
- return false;
26078
+ return AppFormUtils.waitWhilePending(row.validator).then(function () { return _this.confirmAndForward(event, row); });
26080
26079
  }
26081
26080
  return false;
26082
26081
  }
@@ -26895,28 +26894,25 @@
26895
26894
  AppTable.prototype.openRow = function (id, row) {
26896
26895
  return __awaiter(this, void 0, void 0, function () {
26897
26896
  return __generator(this, function (_e) {
26898
- switch (_e.label) {
26899
- case 0:
26900
- if (!this.allowRowDetail) return [3 /*break*/, 2];
26901
- if (this.debug && this.dirty) {
26902
- console.warn('[table] Opening row details, but table has unsaved changes!');
26903
- }
26904
- if (this.onOpenRow.observers.length) {
26905
- this.onOpenRow.emit({ id: id, row: row });
26906
- return [2 /*return*/, true];
26907
- }
26908
- // No ID defined: unable to open details
26909
- if (isNil(id)) {
26910
- console.warn('[table] Opening row details, but data has no id!');
26911
- return [2 /*return*/, false];
26912
- }
26913
- return [4 /*yield*/, this.router.navigate([id], {
26914
- relativeTo: this.route,
26915
- queryParams: {}
26916
- })];
26917
- case 1: return [2 /*return*/, _e.sent()];
26918
- case 2: return [2 /*return*/, false];
26897
+ if (this.allowRowDetail) {
26898
+ if (this.debug && this.dirty) {
26899
+ console.warn('[table] Opening row details, but table has unsaved changes!');
26900
+ }
26901
+ if (this.onOpenRow.observers.length) {
26902
+ this.onOpenRow.emit({ id: id, row: row });
26903
+ return [2 /*return*/, true];
26904
+ }
26905
+ // No ID defined: unable to open details
26906
+ if (isNil(id)) {
26907
+ console.warn('[table] Opening row details, but data has no id!');
26908
+ return [2 /*return*/, false];
26909
+ }
26910
+ return [2 /*return*/, this.router.navigate(['.', id.toString()], {
26911
+ relativeTo: this.route,
26912
+ queryParams: {}
26913
+ })];
26919
26914
  }
26915
+ return [2 /*return*/, false];
26920
26916
  });
26921
26917
  });
26922
26918
  };