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) {
|
search(value: string) {
|
||||||
this.filterText = value;
|
this.filterText = value;
|
||||||
|
this.resetPaginator();
|
||||||
this.getClients();
|
this.getClients();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +83,12 @@ export class ClientsComponent implements OnInit {
|
|||||||
this.sortAttribute = event.active;
|
this.sortAttribute = event.active;
|
||||||
this.sortDirection = event.direction;
|
this.sortDirection = event.direction;
|
||||||
}
|
}
|
||||||
this.currentPage = 0;
|
this.resetPaginator();
|
||||||
this.paginator.firstPage();
|
|
||||||
this.getClients();
|
this.getClients();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private resetPaginator() {
|
||||||
|
this.currentPage = 0;
|
||||||
|
this.paginator.firstPage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user