Browse Source

Enable 'drops' in pattern type select

master
rozetko 7 years ago
parent
commit
3b79323eef
  1. 2
      src/module.ts
  2. 3
      src/partials/tab_analytics.html

2
src/module.ts

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

3
src/partials/tab_analytics.html

@ -13,7 +13,6 @@
<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' for pattern in ctrl.patterns"
ng-disabled="true"
/>
</div>
@ -128,7 +127,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' for pattern in ctrl.patterns"
ng-options="pattern as pattern disable when (pattern !== 'General approach' && pattern !== 'Drops') for pattern in ctrl.patterns"
/>
</div>

Loading…
Cancel
Save