diff --git a/monitor-admin/topic/indicators.component.html b/monitor-admin/topic/indicators.component.html index 26d565d7..44ce49f5 100644 --- a/monitor-admin/topic/indicators.component.html +++ b/monitor-admin/topic/indicators.component.html @@ -565,9 +565,11 @@
-
+ +
+
diff --git a/monitor-admin/topic/indicators.component.ts b/monitor-admin/topic/indicators.component.ts index 7accb1d7..f8f16df3 100644 --- a/monitor-admin/topic/indicators.component.ts +++ b/monitor-admin/topic/indicators.component.ts @@ -1547,4 +1547,9 @@ export class IndicatorsComponent extends IndicatorStakeholderBaseComponent imple get isEditable(): boolean { return this.stakeholder.copy || this.stakeholder.defaultId == null || this.stakeholder.defaultId == '-1'; } + + isLegendEnabled(indicator, i){ + let chartObject = JSON.parse(indicator.indicatorPaths[i].chartObject, indicator.indicatorPaths[i].chartObject) + return !chartObject || !chartObject.chartDescription.legend || chartObject.chartDescription.legend.enabled + } }