tnx-shared 5.3.224 → 5.3.226

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.
@@ -26317,6 +26317,9 @@
26317
26317
  _this.plusUrl = '';
26318
26318
  _this.dataSearchCommon = {};
26319
26319
  _this.popupSizeMax = new PopupSize({ maximize: true });
26320
+ _this.useDefaltSort = true;
26321
+ _this.defaultSortField = 'created';
26322
+ _this.defaultSortDir = -1;
26320
26323
  /**
26321
26324
  * Addtional fields to add to gridInfo.fields when using setting.autoGenerateSelectFields
26322
26325
  * @date 11/4/2022 - 2:03:19 PM
@@ -26642,8 +26645,8 @@
26642
26645
  return [4 /*yield*/, this.modifyGridInfo(gridInfo)];
26643
26646
  case 1:
26644
26647
  resultModify = _b.sent();
26645
- if (gridInfo.sorts.length == 0) {
26646
- gridInfo.sorts.unshift(this.newSort('created', -1));
26648
+ if (this.useDefaltSort && gridInfo.sorts.length == 0) {
26649
+ gridInfo.sorts.unshift(this.newSort(this.defaultSortField, this.defaultSortDir));
26647
26650
  }
26648
26651
  if (resultModify === false) {
26649
26652
  this.model.dataSource = [];
@@ -33580,7 +33583,7 @@
33580
33583
  this._connected = false;
33581
33584
  this.numberOfRetry = 1;
33582
33585
  this.env = _moduleConfigService.getConfig().environment;
33583
- if (this.env.disableTnClient) {
33586
+ if (!this.env.disableTnClient) {
33584
33587
  this.init();
33585
33588
  }
33586
33589
  }