1
0
Fork 0

Fix missing pagination when listing channel syncs

This commit is contained in:
Chocobozzz 2022-09-14 15:18:05 +02:00
parent 910744fb08
commit c95fbe6553
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@
<p-table <p-table
*ngIf="syncEnabled()" [value]="channelSyncs" [lazy]="true" *ngIf="syncEnabled()" [value]="channelSyncs" [lazy]="true"
[paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" [first]="pagination.start" [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
[showCurrentPageReport]="true" i18n-currentPageReportTemplate [showCurrentPageReport]="true" i18n-currentPageReportTemplate
currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} synchronizations" currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} synchronizations"
[expandedRowKeys]="expandedRows" [expandedRowKeys]="expandedRows"

View file

@ -75,6 +75,7 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit {
.subscribe({ .subscribe({
next: res => { next: res => {
this.channelSyncs = res.data this.channelSyncs = res.data
this.totalRecords = res.total
}, },
error: err => { error: err => {
this.error = err.message this.error = err.message