diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index a26f9e8..46f3a18 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -737,9 +737,11 @@ *ngIf="activeTab == 'enermaps' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
- +
+
+ Featured Datasets +
+
Here are listed some of the most important energy datasets as selected by energy experts.
@@ -747,12 +749,16 @@ using only well-known datasets which you can trust.
- + [page]="fetchFeaturedDatasets.searchUtils.page" [pageSize]="size" + [totalResults]="fetchFeaturedDatasets.searchUtils.totalResults" > -
+ +
diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 8cba6db..6db3098 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -386,7 +386,6 @@ export class CommunityComponent { ) ) { this.fetchFeaturedDatasets.getAllResultsForCommunity("dataset", this.communityId, page, size, this.properties, "enermaps::selection"); - // console.log(this.fetchFeaturedDatasets); } this.reloadFeaturedDatasets = false; } @@ -663,5 +662,7 @@ export class CommunityComponent { public updatePage(event) { this.page = event.value; + this.fetchFeaturedDatasets.searchUtils.page = event.value; + this.fetchFeaturedDatasets.results = this.fetchFeaturedDatasets.allResults.slice((this.page - 1) * this.searchNumber, this.page * this.searchNumber) ; } }