@trudb/tru-common-lib 0.0.601 → 0.0.602

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.
@@ -2867,7 +2867,7 @@ class TruDataGrid {
2867
2867
  this.gridType = TruDataGridTypes.Search;
2868
2868
  this.unsavedEntities = [];
2869
2869
  this.loadedEntities = [];
2870
- this.gridInitilized = false;
2870
+ this.firstSearchRan = false;
2871
2871
  this.gridOptions = {
2872
2872
  rowSelection: 'multiple',
2873
2873
  rowStyle: { background: 'white' },
@@ -2878,7 +2878,7 @@ class TruDataGrid {
2878
2878
  noRowsOverlayComponent: TruDataGridNoRowsOverlay,
2879
2879
  noRowsOverlayComponentParams: {
2880
2880
  noRowsMessageFunc: () => {
2881
- if (this.gridInitilized)
2881
+ if (this.firstSearchRan)
2882
2882
  return 'Sorry - no rows found!';
2883
2883
  else
2884
2884
  return 'Click search to display results.';
@@ -3007,6 +3007,7 @@ class TruDataGrid {
3007
3007
  }
3008
3008
  };
3009
3009
  this.onSearch = (setupQuery) => {
3010
+ this.firstSearchRan = true;
3010
3011
  this.gridOptions.api.hideOverlay();
3011
3012
  this.gridOptions.api.showLoadingOverlay();
3012
3013
  let entityLoaded = this.loadedEntities.some((ref) => { return ref === this.entity[this.entity.constructor.name + 'Ref']; });
@@ -3152,7 +3153,6 @@ class TruDataGrid {
3152
3153
  if (this.gridType === TruDataGridTypes.Detail || this.gridType === TruDataGridTypes.DetailManyToMany) {
3153
3154
  this.onSearch(this.config.resultConfig.setupQuery(this.entity));
3154
3155
  }
3155
- this.gridInitilized = true;
3156
3156
  }, 0);
3157
3157
  }
3158
3158
  ngOnDestroy() {