Fix missing pagination when listing channel syncs
This commit is contained in:
parent
910744fb08
commit
c95fbe6553
|
@ -12,7 +12,7 @@
|
|||
<p-table
|
||||
*ngIf="syncEnabled()" [value]="channelSyncs" [lazy]="true"
|
||||
[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
|
||||
currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} synchronizations"
|
||||
[expandedRowKeys]="expandedRows"
|
||||
|
|
|
@ -75,6 +75,7 @@ export class MyVideoChannelSyncsComponent extends RestTable implements OnInit {
|
|||
.subscribe({
|
||||
next: res => {
|
||||
this.channelSyncs = res.data
|
||||
this.totalRecords = res.total
|
||||
},
|
||||
error: err => {
|
||||
this.error = err.message
|
||||
|
|
Loading…
Reference in New Issue