From 0b90448e01f1d0a1f4b5eb2546d3b8437ccf21e7 Mon Sep 17 00:00:00 2001 From: argirok Date: Mon, 4 Dec 2023 13:26:34 +0200 Subject: [PATCH] [angular-16-irish-monitor | DONE | CHANGED] entities selection add check for irish monitor dashboards --- searchPages/searchUtils/entitiesSelection.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/searchPages/searchUtils/entitiesSelection.component.ts b/searchPages/searchUtils/entitiesSelection.component.ts index 253967e6..cca954dd 100644 --- a/searchPages/searchUtils/entitiesSelection.component.ts +++ b/searchPages/searchUtils/entitiesSelection.component.ts @@ -40,7 +40,7 @@ export class EntitiesSelectionComponent { /** TODO change conditions base on PortalType instead of customFilter */ ngOnInit() { - if ((this.customFilter && this.customFilter.queryFieldName == "communityId") || (['explore', 'aggregator', 'eosc', 'irish', 'faircore4eosc'].includes(this.properties.adminToolsPortalType))) { + if ((this.customFilter && this.customFilter.queryFieldName == "communityId") || (['explore', 'aggregator', 'eosc', 'faircore4eosc'].includes(this.properties.adminToolsPortalType))) { this.subscriptions.push(this.config.portalAsObservable.subscribe(data => { if (data) { let showEntity = {}; @@ -106,7 +106,8 @@ export class EntitiesSelectionComponent { })); } else if ((this.customFilter && this.customFilter.queryFieldName == "community") || (this.customFilter && (this.customFilter.queryFieldName == "relfunder" || this.customFilter.queryFieldName == "funder")) || - (this.customFilter && this.customFilter.queryFieldName == "relorganizationid")) { + (this.customFilter && this.customFilter.queryFieldName == "relorganizationid") + || this.properties.adminToolsPortalType == "irish") { this.entities.push({label: OpenaireEntities.RESULTS, value: 'result'}); this.entities.push({label: OpenaireEntities.PROJECTS, value: 'project'}); this.entities.push({label: OpenaireEntities.ORGANIZATIONS, value: 'organization'});