FINERACT-1724: Clients screen resetting the paginator after search
This commit is contained in:
committed by
Arnold Gálovics
parent
aa438ed4b2
commit
01ff5e8dd8
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user