aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-24 15:33:18 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 15:33:18 +0200
commit6d8c70aa2dddd989f4605630a109db167128c1f5 (patch)
tree3c2f2c2578880f9b57b50d06bf03ee92936f9659 /client/src
parent77de223a5f5aca1dc32e23ca22a8ac7d8b009c4f (diff)
downloadPeerTube-6d8c70aa2dddd989f4605630a109db167128c1f5.tar.gz
PeerTube-6d8c70aa2dddd989f4605630a109db167128c1f5.tar.zst
PeerTube-6d8c70aa2dddd989f4605630a109db167128c1f5.zip
Fix pagination on rest table
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+admin/jobs/jobs-list/jobs-list.component.html2
-rw-r--r--client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts2
2 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
index b52d026a7..7ed1888e2 100644
--- a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
+++ b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
@@ -10,7 +10,7 @@
10 10
11<p-table 11<p-table
12 [value]="jobs" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" dataKey="uniqId" 12 [value]="jobs" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" dataKey="uniqId"
13 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" 13 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" [first]="pagination.start"
14> 14>
15 <ng-template pTemplate="header"> 15 <ng-template pTemplate="header">
16 <tr> 16 <tr>
diff --git a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
index a77f4a4a1..44ab59d36 100644
--- a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
+++ b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
@@ -40,6 +40,8 @@ export class JobsListComponent extends RestTable implements OnInit {
40 } 40 }
41 41
42 onJobStateChanged () { 42 onJobStateChanged () {
43 this.pagination.start = 0
44
43 this.loadData() 45 this.loadData()
44 this.saveJobState() 46 this.saveJobState()
45 } 47 }