|
|
@ -135,8 +135,7 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
aliasColors: {}, |
|
|
|
aliasColors: {}, |
|
|
|
// other style overrides
|
|
|
|
// other style overrides
|
|
|
|
seriesOverrides: [], |
|
|
|
seriesOverrides: [], |
|
|
|
thresholds: [], |
|
|
|
thresholds: [] |
|
|
|
anomalyType: '', |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** @ngInject */ |
|
|
|
/** @ngInject */ |
|
|
@ -531,6 +530,10 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
this.analyticsController.toggleAnalyticUnitAlert(analyticUnit); |
|
|
|
this.analyticsController.toggleAnalyticUnitAlert(analyticUnit); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onAnalyticUnitNameChange(analyticUnit: AnalyticUnit) { |
|
|
|
|
|
|
|
this.analyticsController.fetchAnalyticUnitName(analyticUnit); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onColorChange(id: AnalyticUnitId, value: string) { |
|
|
|
onColorChange(id: AnalyticUnitId, value: string) { |
|
|
|
if(id === undefined) { |
|
|
|
if(id === undefined) { |
|
|
|
throw new Error('id is undefined'); |
|
|
|
throw new Error('id is undefined'); |
|
|
@ -549,7 +552,7 @@ class GraphCtrl extends MetricsPanelCtrl { |
|
|
|
|
|
|
|
|
|
|
|
onCancelLabeling(id: AnalyticUnitId) { |
|
|
|
onCancelLabeling(id: AnalyticUnitId) { |
|
|
|
this.$scope.$root.appEvent('confirm-modal', { |
|
|
|
this.$scope.$root.appEvent('confirm-modal', { |
|
|
|
title: 'Clear anomaly labeling', |
|
|
|
title: 'Clear labeling', |
|
|
|
text2: 'Your changes will be lost.', |
|
|
|
text2: 'Your changes will be lost.', |
|
|
|
yesText: 'Clear', |
|
|
|
yesText: 'Clear', |
|
|
|
icon: 'fa-warning', |
|
|
|
icon: 'fa-warning', |
|
|
|