From 82c9d21e07dc0e9fbfcae826cffcf6d9c1af73eb Mon Sep 17 00:00:00 2001 From: Argiro Kokogiannaki Date: Fri, 11 Dec 2020 10:14:27 +0000 Subject: [PATCH] [Monitor | Trunk] - fix issue losing the active topic - when changing the sub categeries - add property disableFrameLoad in dev, and disable loading frames when the property exists and is true - remove checks about recommnededFor stakeholders git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@60117 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 2 +- src/app/monitor/monitor.component.html | 5 ++++- src/app/topic/indicators.component.html | 13 ++++++++++--- src/app/utils/indicator-utils.ts | 8 ++------ src/environments/environment.ts | 1 + 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4633aa0..d4a06c1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -118,7 +118,7 @@ export class AppComponent implements OnInit, OnDestroy { this.subscriptions.push(this.params.subscribe(params => { if (this.paramsResolved) { this.loading = true; - let isSearch = this.router.url.includes('search'); + let isSearch = this.router.url.includes('/search/'); if (params && params['stakeholder']) { // this.stakeholder = this.stakeholderService.stakeholder; if (!this.stakeholder || this.stakeholder.alias !== params['stakeholder']) { diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 06b7cac..16bf9a1 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -174,10 +174,13 @@
Filtered: {{chartsActiveType.get(i + '-' + j).filtersApplied}} out of {{countSelectedFilters()}}
- +
I frames preview is disabled
{{indicator.name}} - - +
I frames + preview is disabled
- +
I frames + preview is disabled
diff --git a/src/app/utils/indicator-utils.ts b/src/app/utils/indicator-utils.ts index a57d0f1..ac8147c 100644 --- a/src/app/utils/indicator-utils.ts +++ b/src/app/utils/indicator-utils.ts @@ -63,9 +63,7 @@ export class StakeholderUtils { for (let subCategory of category.subCategories) { subCategory.defaultId = subCategory._id; subCategory._id = null; - if (!subCategory.recommendedFor || subCategory.recommendedFor.length == 0 || subCategory.recommendedFor.indexOf(funder.index_id) != -1) { - subTokeep.push(subCategory); - } + subTokeep.push(subCategory); for (let section of subCategory.charts) { let chartsTokeep: Indicator[] = []; section.defaultId = section._id; @@ -74,9 +72,7 @@ export class StakeholderUtils { for (let indicator of section.indicators) { indicator.defaultId = indicator._id; indicator._id = null; - if (!indicator.recommendedFor || indicator.recommendedFor.length == 0 || indicator.recommendedFor.indexOf(funder.index_id) != -1) { - chartsTokeep.push(indicator); - } + chartsTokeep.push(indicator); for (let indicatorPath of indicator.indicatorPaths) { if (indicatorPath.parameters) { Object.keys(indicatorPath.parameters).forEach(key => { diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 024724c..06b85af 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -19,6 +19,7 @@ export let properties: EnvProperties = { statisticsFrameAPIURL: "https://beta.openaire.eu/stats/", statisticsFrameNewAPIURL: "https://stats.madgik.di.uoa.gr/stats-api/", useNewStatistisTool: false, + disableFrameLoad: true, claimsAPIURL: "http://scoobydoo.di.uoa.gr:8080/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/", searchAPIURLLAst: "https://beta.services.openaire.eu/search/v2/api/", searchResourcesAPIURL: "https://beta.services.openaire.eu/search/v2/api/resources",