Fix pagination on rest table

This commit is contained in:
Chocobozzz 2018-07-24 15:33:18 +02:00
parent 77de223a5f
commit 6d8c70aa2d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<p-table
[value]="jobs" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" dataKey="uniqId"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" [first]="pagination.start"
>
<ng-template pTemplate="header">
<tr>

View File

@ -40,6 +40,8 @@ export class JobsListComponent extends RestTable implements OnInit {
}
onJobStateChanged () {
this.pagination.start = 0
this.loadData()
this.saveJobState()
}