Browse Source

Support old pattern name #19

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

1
src/module.ts

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

2
src/partials/tab_analytics.html

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

Loading…
Cancel
Save