FINERACT-1724: Clients screen resetting the paginator after search

This commit is contained in:
Arnold Galovics
2023-05-24 10:57:26 +02:00
committed by Arnold Gálovics
parent aa438ed4b2
commit 01ff5e8dd8
+7 -2
View File
@@ -49,6 +49,7 @@ export class ClientsComponent implements OnInit {
*/
search(value: string) {
this.filterText = value;
this.resetPaginator();
this.getClients();
}
@@ -82,8 +83,12 @@ export class ClientsComponent implements OnInit {
this.sortAttribute = event.active;
this.sortDirection = event.direction;
}
this.currentPage = 0;
this.paginator.firstPage();
this.resetPaginator();
this.getClients();
}
private resetPaginator() {
this.currentPage = 0;
this.paginator.firstPage();
}
}