[Connect]: community.component.html: Remove properties.environment != 'production' check for enermaps "Featured Datasets" tab | app.component.ts: [Bug fix] Added undefined check before creating intersection observers.
This commit is contained in:
parent
1e78ba1c28
commit
206d18c60a
|
@ -474,9 +474,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
restrictedData ? "" : "/myCommunities", false, [], [], {}));
|
||||
}
|
||||
this.showMenu = true;
|
||||
setTimeout(() => {
|
||||
this.createObservers();
|
||||
});
|
||||
if (typeof document !== "undefined") {
|
||||
setTimeout(() => {
|
||||
this.createObservers();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -538,12 +538,13 @@
|
|||
Ontology Mapping
|
||||
</a>
|
||||
</li>
|
||||
<li *ngIf="properties.environment != 'production' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"
|
||||
(click)="onSelectActiveTab('enermaps')" [class.uk-active]="activeTab == 'enermaps'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab">
|
||||
Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
<li
|
||||
*ngIf="communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"
|
||||
(click)="onSelectActiveTab('enermaps')" [class.uk-active]="activeTab == 'enermaps'">
|
||||
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab">
|
||||
Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}})
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -717,17 +718,18 @@
|
|||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="activeTab == 'enermaps' && properties.environment != 'production' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding uk-padding-remove-horizontal">
|
||||
<search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'"
|
||||
[properties]="properties" customTitle="Featured Datasets" [currentPage]="page"
|
||||
[showEnermaps]="true">
|
||||
<div class="uk-margin-top uk-margin-medium-bottom uk-text-meta">
|
||||
<div>Here are listed some of the most important energy datasets as selected by energy experts.</div>
|
||||
<div>
|
||||
Check them if you want to easily explore and visualize the European energy landscape,
|
||||
using only well-known datasets which you can trust.
|
||||
<div
|
||||
*ngIf="activeTab == 'enermaps' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
|
||||
<div class="uk-grid uk-margin-remove">
|
||||
<div class="uk-width-expand uk-padding uk-padding-remove-horizontal">
|
||||
<search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'"
|
||||
[properties]="properties" customTitle="Featured Datasets" [currentPage]="page"
|
||||
[showEnermaps]="true">
|
||||
<div class="uk-margin-top uk-margin-medium-bottom uk-text-meta">
|
||||
<div>Here are listed some of the most important energy datasets as selected by energy experts.</div>
|
||||
<div>
|
||||
Check them if you want to easily explore and visualize the European energy landscape,
|
||||
using only well-known datasets which you can trust.
|
||||
</div>
|
||||
</div>
|
||||
<no-load-paging *ngIf="fetchFeaturedDatasets && fetchFeaturedDatasets.results.length > size" [type]="'Featured Datasets'"
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 10130d368a1e3c72e6785fe2291234529040bf84
|
||||
Subproject commit da144c1c77012fa4489dd84f013d499f9df8f72a
|
|
@ -1 +1 @@
|
|||
Subproject commit d772dbd4b2f2d8af9e26d98eed7417f2fbf15c3a
|
||||
Subproject commit cd44ace5d067999ed6d852f20204d5a05385580b
|
|
@ -1 +1 @@
|
|||
Subproject commit 2882ccde4eb93bd01b4cdb480790cc04b394794d
|
||||
Subproject commit 99ecab0b4e9ceed21424c8fa26ef270b4695b11e
|
Loading…
Reference in New Issue