diff --git a/src/app/home/top-level-community-list/top-level-community-list.component.html b/src/app/home/top-level-community-list/top-level-community-list.component.html index a5450b6cce..772eb66012 100644 --- a/src/app/home/top-level-community-list/top-level-community-list.component.html +++ b/src/app/home/top-level-community-list/top-level-community-list.component.html @@ -2,5 +2,5 @@

{{'home.top-level-communities.head' | translate}}

{{'home.top-level-communities.help' | translate}}

+ [objects]="topLevelCommunities" [hideGear]="true" (paginationChange)="updatePage($event)"> diff --git a/src/app/home/top-level-community-list/top-level-community-list.component.ts b/src/app/home/top-level-community-list/top-level-community-list.component.ts index 2362d7ddd7..43ad4859df 100644 --- a/src/app/home/top-level-community-list/top-level-community-list.component.ts +++ b/src/app/home/top-level-community-list/top-level-community-list.component.ts @@ -24,9 +24,7 @@ export class TopLevelCommunityListComponent { this.config.pageSizeOptions = [4]; this.config.pageSize = 4; this.sortConfig = new SortOptions(); - } - ngOnInit(): void { this.updatePage({ page: 1, pageSize: this.config.pageSize, diff --git a/src/app/object-list/object-list.component.html b/src/app/object-list/object-list.component.html index 8489b24d2b..0765e00476 100644 --- a/src/app/object-list/object-list.component.html +++ b/src/app/object-list/object-list.component.html @@ -7,7 +7,8 @@ (pageChange)="onPageChange($event)" (pageSizeChange)="onPageSizeChange($event)" (sortDirectionChange)="onSortDirectionChange($event)" - (sortFieldChange)="onSortDirectionChange($event)"> + (sortFieldChange)="onSortDirectionChange($event)" + (paginationChange)="onPaginationChange($event)">