+ (clickOutside)="closeDescriptionOverlay($event, indicator)">
-
diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts
index e9ff6ef..4bf9845 100644
--- a/src/app/monitor/monitor.component.ts
+++ b/src/app/monitor/monitor.component.ts
@@ -11,15 +11,18 @@ import {HelperService} from "../openaireLibrary/utils/helper/helper.service";
import {SEOService} from "../openaireLibrary/sharedComponents/SEO/SEO.service";
import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service";
import {
- Category, Indicator,
- IndicatorPath, IndicatorSize, Section,
+ Category,
+ Indicator,
+ IndicatorPath,
+ IndicatorSize,
+ Section,
Stakeholder,
SubCategory,
Topic,
Visibility
} from "../openaireLibrary/monitor/entities/stakeholder";
import {StatisticsService} from "../utils/services/statistics.service";
-import {IndicatorUtils, StakeholderUtils} from "../utils/indicator-utils";
+import {IndicatorUtils} from "../utils/indicator-utils";
import {LayoutService} from "../openaireLibrary/dashboard/sharedComponents/sidebar/layout.service";
import {UntypedFormBuilder, UntypedFormControl} from "@angular/forms";
import {Subscriber, Subscription} from "rxjs";
@@ -51,7 +54,6 @@ export class MonitorComponent implements OnInit, OnDestroy {
public loading: boolean = true;
public view: Visibility;
public indicatorUtils: IndicatorUtils = new IndicatorUtils();
- public stakeholderUtils: StakeholderUtils = new StakeholderUtils();
public activeTopic: Topic = null;
public activeCategory: Category = null;
public activeSubCategory: SubCategory = null;
@@ -78,7 +80,6 @@ export class MonitorComponent implements OnInit, OnDestroy {
privateStakeholder = false;
public keyword: UntypedFormControl;
public statsUpdateDate: Date;
- public showDescriptionOverlay: boolean[] = [];
public isFullscreen: boolean = false;
public isMobile: boolean = false;
@@ -611,14 +612,14 @@ export class MonitorComponent implements OnInit, OnDestroy {
this.userManagementService.login();
}
- toggleDescriptionOverlay(event, j) {
+ toggleDescriptionOverlay(event, indicator: Indicator) {
event.stopPropagation();
- this.showDescriptionOverlay[j] = !this.showDescriptionOverlay[j];
+ indicator.descriptionOverlay = !indicator.descriptionOverlay;
}
- closeDescriptionOverlay(event: ClickEvent,j) {
- if(event.clicked && this.showDescriptionOverlay[j]) {
- this.showDescriptionOverlay[j] = false;
+ closeDescriptionOverlay(event: ClickEvent, indicator: Indicator) {
+ if(event.clicked && indicator.descriptionOverlay) {
+ indicator.descriptionOverlay = false;
}
}
}
diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary
index 6dafcb3..f49149c 160000
--- a/src/app/openaireLibrary
+++ b/src/app/openaireLibrary
@@ -1 +1 @@
-Subproject commit 6dafcb391a63771cf620d5bff79759ec94bae778
+Subproject commit f49149c99e7bf08179d95b56a1aac9848a850344