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.
@@ -22627,6 +22627,9 @@ class ListBase extends ComponentBaseWithButton {
22627
22627
  this.plusUrl = '';
22628
22628
  this.dataSearchCommon = {};
22629
22629
  this.popupSizeMax = new PopupSize({ maximize: true });
22630
+ this.useDefaltSort = true;
22631
+ this.defaultSortField = 'created';
22632
+ this.defaultSortDir = -1;
22630
22633
  /**
22631
22634
  * Addtional fields to add to gridInfo.fields when using setting.autoGenerateSelectFields
22632
22635
  * @date 11/4/2022 - 2:03:19 PM
@@ -22898,8 +22901,8 @@ class ListBase extends ComponentBaseWithButton {
22898
22901
  gridInfo.fields = fields.join(',');
22899
22902
  }
22900
22903
  const resultModify = yield this.modifyGridInfo(gridInfo);
22901
- if (gridInfo.sorts.length == 0) {
22902
- gridInfo.sorts.unshift(this.newSort('created', -1));
22904
+ if (this.useDefaltSort && gridInfo.sorts.length == 0) {
22905
+ gridInfo.sorts.unshift(this.newSort(this.defaultSortField, this.defaultSortDir));
22903
22906
  }
22904
22907
  if (resultModify === false) {
22905
22908
  this.model.dataSource = [];
@@ -28829,7 +28832,7 @@ class TnClientService {
28829
28832
  this._connected = false;
28830
28833
  this.numberOfRetry = 1;
28831
28834
  this.env = _moduleConfigService.getConfig().environment;
28832
- if (this.env.disableTnClient) {
28835
+ if (!this.env.disableTnClient) {
28833
28836
  this.init();
28834
28837
  }
28835
28838
  }