Browse Source

Rename "General approach" to "General" #19

master
sanke1 6 years ago committed by rozetko
parent
commit
2c696c4fd9
  1. 2
      src/model/anomaly.ts
  2. 2
      src/module.ts
  3. 4
      src/partials/tab_analytics.html

2
src/model/anomaly.ts

@ -36,7 +36,7 @@ export class AnomalyType {
this._panelObject = {};
}
_.defaults(this._panelObject, {
name: 'anomaly_name', confidence: 0.2, color: 'red', pattern: 'General approach'
name: 'anomaly_name', confidence: 0.2, color: 'red', pattern: 'General'
});
//this._metric = new Metric(_panelObject.metric);

2
src/module.ts

@ -42,7 +42,7 @@ class GraphCtrl extends MetricsPanelCtrl {
processor: DataProcessor;
datasourceRequest: DatasourceRequest;
patterns: Array<String> = ['General approach', 'Drops', 'Peaks', 'Jumps'];
patterns: Array<String> = ['General', 'Drops', 'Peaks', 'Jumps'];
anomalyTypes = []; // TODO: remove it later. Only for alert tab
anomalyController: AnomalyController;

4
src/partials/tab_analytics.html

@ -13,7 +13,7 @@
<div class="gf-form-select-wrapper">
<select class="gf-form-input width-12"
ng-model="anomalyType.pattern"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
ng-options="pattern as pattern disable when (pattern !== 'General' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
ng-disabled="true"
/>
</div>
@ -128,7 +128,7 @@
<div class="gf-form-select-wrapper">
<select class="gf-form-input width-12"
ng-model="ctrl.anomalyController.newAnomalyType.pattern"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
ng-options="pattern as pattern disable when (pattern !== 'General' && pattern !== 'Drops' && pattern !== 'Peaks') for pattern in ctrl.patterns"
/>
</div>

Loading…
Cancel
Save