mirror of https://github.com/Chocobozzz/PeerTube
Fix pagination on rest table
parent
77de223a5f
commit
6d8c70aa2d
|
@ -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>
|
||||
|
|
|
@ -40,6 +40,8 @@ export class JobsListComponent extends RestTable implements OnInit {
|
|||
}
|
||||
|
||||
onJobStateChanged () {
|
||||
this.pagination.start = 0
|
||||
|
||||
this.loadData()
|
||||
this.saveJobState()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue