Fix missing pagination when listing channel syncs
This commit is contained in:
parent
910744fb08
commit
c95fbe6553
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue