65600: Pagination on top level communities by combineFlatten list of consecutive page payloads

This commit is contained in:
Marie Verdonck
2019-10-15 15:01:51 +02:00
parent 1400af3a5e
commit 48d893e975
2 changed files with 31 additions and 19 deletions

View File

@@ -19,11 +19,11 @@ export class CommunityListComponent implements OnInit {
dataSource: CommunityListDatasource;
constructor(private communityListService: CommunityListAdapter) {
constructor(private communityListAdapter: CommunityListAdapter) {
}
ngOnInit() {
this.dataSource = new CommunityListDatasource(this.communityListService);
this.dataSource = new CommunityListDatasource(this.communityListAdapter);
this.dataSource.loadCommunities(null);
}
@@ -47,8 +47,8 @@ export class CommunityListComponent implements OnInit {
}
getNextPage(): void {
console.log('go to next page');
// TODO
this.communityListAdapter.getNextPageTopCommunities();
this.dataSource.loadCommunities(this.expandedNodes);
}
}