Skip to content

Commit

Permalink
TCVP-2771: fixed filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Krishna Metpalli authored and Sai Krishna Metpalli committed Mar 28, 2024
1 parent d9445ad commit 82df08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class TicketInboxComponent implements OnInit {
// called on keyup in filter field
onApplyFilter(dataFilters: TableFilter) {
this.filters = dataFilters;
this.currentPage = 1;
this.getAllDisputes();
}

Expand All @@ -130,6 +131,7 @@ export class TicketInboxComponent implements OnInit {
sortData(sort: Sort){
this.sortBy = [sort.active];
this.sortDirection = [sort.direction ? sort.direction as SortDirection : SortDirection.Desc];
this.currentPage = 1;
this.getAllDisputes();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class TableFiltersComponent implements OnInit {
// Put this call in a Timeout to keep UI responsive.
setTimeout(() => {
this.tableFilterService.tableFilters[this.tabIndex] = this.dataFilters;
this.dataFilters.status = this.dataFilters.status ?? "";
this.onFilterChanged.emit(this.dataFilters);
}, 100);
}
Expand Down

0 comments on commit 82df08e

Please sign in to comment.