mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix infinite pagination test (#4279)
This commit is contained in:
@@ -90,7 +90,12 @@ export class InfinitePaginationComponent implements OnInit, OnDestroy, Paginatio
|
||||
onLoadMore() {
|
||||
this.requestPaginationModel.skipCount = 0;
|
||||
this.requestPaginationModel.merge = false;
|
||||
this.requestPaginationModel.maxItems += this.pageSize;
|
||||
|
||||
if (!this.requestPaginationModel.maxItems) {
|
||||
this.requestPaginationModel.maxItems = this.pageSize;
|
||||
} else {
|
||||
this.requestPaginationModel.maxItems += this.pageSize;
|
||||
}
|
||||
|
||||
this.loadMore.next(this.requestPaginationModel);
|
||||
|
||||
|
Reference in New Issue
Block a user