aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-14 15:18:05 +0200
committerChocobozzz <me@florianbigard.com>2022-09-14 15:18:05 +0200
commitc95fbe65530191d7be22341815ecb743c139396f (patch)
treea81a100c5c77114bc993433aa891068b4da7ce40
parent910744fb084499a110d26bf5542abebb8a750b19 (diff)
downloadPeerTube-c95fbe65530191d7be22341815ecb743c139396f.tar.gz
PeerTube-c95fbe65530191d7be22341815ecb743c139396f.tar.zst
PeerTube-c95fbe65530191d7be22341815ecb743c139396f.zip
Fix missing pagination when listing channel syncs
-rw-r--r--client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html2
-rw-r--r--client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
index c2fed8112..5f368d430 100644
--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
@@ -12,7 +12,7 @@
12<p-table 12<p-table
13 *ngIf="syncEnabled()" [value]="channelSyncs" [lazy]="true" 13 *ngIf="syncEnabled()" [value]="channelSyncs" [lazy]="true"
14 [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" 14 [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
15 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" 15 [first]="pagination.start" [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
16 [showCurrentPageReport]="true" i18n-currentPageReportTemplate 16 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
17 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} synchronizations" 17 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} synchronizations"
18 [expandedRowKeys]="expandedRows" 18 [expandedRowKeys]="expandedRows"
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts
index 0c429e5dd..290847418 100644
--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts
+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts
@@ -75,6 +75,7 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit {
75 .subscribe({ 75 .subscribe({
76 next: res => { 76 next: res => {
77 this.channelSyncs = res.data 77 this.channelSyncs = res.data
78 this.totalRecords = res.total
78 }, 79 },
79 error: err => { 80 error: err => {
80 this.error = err.message 81 this.error = err.message