From 11ef620eee0a214cf6b6c4e2ecf037580a5bd056 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 29 Nov 2022 14:26:42 +0200 Subject: [PATCH] [EOSC Explore | angular-14]: home.component.ts: [Bug fix] Remove numbersComponent as it not used. --- src/app/home/home.component.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 37ff331..de09c8b 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -22,9 +22,6 @@ import {AggregatorInfo, PortalAggregators} from "../utils/aggregators"; import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/searchUtils.class"; import {properties} from "../../environments/environment"; import {portalProperties} from "../../environments/environment-aggregator"; -import {StringUtils} from "../openaireLibrary/utils/string-utils.class"; -import {ConnectHelper} from "../openaireLibrary/connect/connectHelper"; -import {NumbersComponent} from "../openaireLibrary/sharedComponents/numbers/numbers.component"; @Component({ selector: 'home', @@ -65,8 +62,7 @@ export class HomeComponent { public pageContents = null; customFilter:SearchCustomFilter= null; aggregator:AggregatorInfo; - @ViewChild('numbersComponent', { static: true }) numbersComponent: NumbersComponent; - + constructor ( private route: ActivatedRoute, private _router: Router, @@ -139,12 +135,6 @@ export class HomeComponent { if(this.showOrp){ this.resultTypes.values.push({name: OpenaireEntities.OTHER , id:"other",selected:false, number:0}); } - if(this.numbersComponent) { - this.numbersComponent.init(false, false, this.showPublications, this.showDatasets, - this.showSoftware, this.showOrp, this.showProjects, this.showDataProviders, this.customFilter ? - StringUtils.URIEncode(this.customFilter.queryFieldName + " exact " + StringUtils.quote((this.customFilter.valueId))) : ''); - } - } }, error => {