[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:
Konstantina Galouni 2023-01-18 12:34:24 +02:00
parent 1e78ba1c28
commit 206d18c60a
5 changed files with 27 additions and 23 deletions

View File

@ -474,10 +474,12 @@ export class AppComponent implements OnInit, OnDestroy {
restrictedData ? "" : "/myCommunities", false, [], [], {})); restrictedData ? "" : "/myCommunities", false, [], [], {}));
} }
this.showMenu = true; this.showMenu = true;
if (typeof document !== "undefined") {
setTimeout(() => { setTimeout(() => {
this.createObservers(); this.createObservers();
}); });
} }
}
/** /**
* Contact methods * Contact methods

View File

@ -538,7 +538,8 @@
Ontology Mapping Ontology Mapping
</a> </a>
</li> </li>
<li *ngIf="properties.environment != 'production' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')" <li
*ngIf="communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"
(click)="onSelectActiveTab('enermaps')" [class.uk-active]="activeTab == 'enermaps'"> (click)="onSelectActiveTab('enermaps')" [class.uk-active]="activeTab == 'enermaps'">
<a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab"> <a class="uk-width-1-1 uk-height-1-1 uk-flex uk-flex-center featuredTab">
Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}}) Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}})
@ -717,7 +718,8 @@
</span> </span>
</div> </div>
</div> </div>
<div *ngIf="activeTab == 'enermaps' && properties.environment != 'production' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')"> <div
*ngIf="activeTab == 'enermaps' && communityId == 'enermaps' && fetchFeaturedDatasets.searchUtils.totalResults > 0 && isEntityEnabled('dataset')">
<div class="uk-grid uk-margin-remove"> <div class="uk-grid uk-margin-remove">
<div class="uk-width-expand uk-padding uk-padding-remove-horizontal"> <div class="uk-width-expand uk-padding uk-padding-remove-horizontal">
<search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'" <search-tab [fetch]="fetchFeaturedDatasets" [resultType]="'dataset'"

@ -1 +1 @@
Subproject commit 10130d368a1e3c72e6785fe2291234529040bf84 Subproject commit da144c1c77012fa4489dd84f013d499f9df8f72a

@ -1 +1 @@
Subproject commit d772dbd4b2f2d8af9e26d98eed7417f2fbf15c3a Subproject commit cd44ace5d067999ed6d852f20204d5a05385580b

@ -1 +1 @@
Subproject commit 2882ccde4eb93bd01b4cdb480790cc04b394794d Subproject commit 99ecab0b4e9ceed21424c8fa26ef270b4695b11e