mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3930] fix infinite pagination (#4275)
* refactoring infinite pagination * fix lint * fix import reuqest pagination from core * fix failing unit test
This commit is contained in:
@@ -20,15 +20,15 @@ import { Pagination } from '@alfresco/js-api';
|
||||
export class PaginationModel extends Pagination {
|
||||
merge?: boolean;
|
||||
|
||||
constructor(obj?: any) {
|
||||
super(obj);
|
||||
if (obj) {
|
||||
this.count = obj.count;
|
||||
this.hasMoreItems = obj.hasMoreItems ? obj.hasMoreItems : false;
|
||||
this.merge = obj.merge ? obj.merge : false;
|
||||
this.totalItems = obj.totalItems;
|
||||
this.skipCount = obj.skipCount;
|
||||
this.maxItems = obj.maxItems;
|
||||
constructor(input?: any) {
|
||||
super(input);
|
||||
if (input) {
|
||||
this.count = input.count;
|
||||
this.hasMoreItems = input.hasMoreItems ? input.hasMoreItems : false;
|
||||
this.merge = input.merge ? input.merge : false;
|
||||
this.totalItems = input.totalItems;
|
||||
this.skipCount = input.skipCount;
|
||||
this.maxItems = input.maxItems;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user