cat-qw-lib 0.24.5 → 0.24.6

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.
@@ -818,7 +818,7 @@ class BaseService {
818
818
  return this.http.get(url).pipe(tap((entities) => this.store.set(entities)));
819
819
  }
820
820
  getPaginatedList(search = SHARED.EMPTY, page = 1, limit = 10, pathName) {
821
- this._pathName = (!!this._pathName ? this._pathName : pathName);
821
+ this._pathName = (!!pathName ? pathName : this._pathName);
822
822
  const url = `${this.apiUrl}${this._pathName}?searchKey=${search}&page=${page}&limit=${limit}`;
823
823
  return this.http.get(url).pipe(tap((entities) => this.store.set(entities)));
824
824
  }
@@ -1608,7 +1608,7 @@ class TablePrimaryComponent {
1608
1608
  globalFilter = SHARED.EMPTY;
1609
1609
  page;
1610
1610
  limit;
1611
- // private searchSubscription: any;
1611
+ searchSubscription;
1612
1612
  constructor(_router, service, builder, baseStore) {
1613
1613
  this._router = _router;
1614
1614
  this.service = service;
@@ -1629,6 +1629,7 @@ class TablePrimaryComponent {
1629
1629
  // });
1630
1630
  }
1631
1631
  onSearchChange(value) {
1632
+ // this.baseStore.searchSubject$.next(value);
1632
1633
  if (value === null)
1633
1634
  return;
1634
1635
  this.loading = true;
@@ -1636,7 +1637,6 @@ class TablePrimaryComponent {
1636
1637
  if (this.dt2) {
1637
1638
  this.dt2.first = 0;
1638
1639
  }
1639
- // this.baseStore.searchSubject$.next(value);
1640
1640
  this.service.getPaginatedList(this.globalFilter, this.page, this.limit, this.pathName).subscribe({
1641
1641
  next: (res) => {
1642
1642
  this.table.records = res.data;