Browse Source

No data -> NO_DATA

master
rozetko 6 years ago
parent
commit
63b311ccc0
  1. 2
      src/panel/graph_panel/models/threshold.ts
  2. 5
      src/panel/graph_panel/partials/tab_analytics.html

2
src/panel/graph_panel/models/threshold.ts

@ -6,7 +6,7 @@ export enum Condition {
EQUAL = '=', EQUAL = '=',
LESS_OR_EQUAL = '<=', LESS_OR_EQUAL = '<=',
LESS = '<', LESS = '<',
NO_DATA = 'No data' NO_DATA = 'NO_DATA'
}; };
export type Threshold = { export type Threshold = {

5
src/panel/graph_panel/partials/tab_analytics.html

@ -75,7 +75,10 @@
class="gf-form-input width-5" class="gf-form-input width-5"
type="number" type="number"
ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).value" ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).value"
ng-if="analyticUnit.detectorType === 'threshold' && ctrl.analyticsController.getThreshold(analyticUnit.id).condition != 'No data'" ng-if="
analyticUnit.detectorType === 'threshold' &&
ctrl.analyticsController.getThreshold(analyticUnit.id).condition != 'NO_DATA'
"
ng-blur="ctrl.analyticsController.saveThreshold(analyticUnit.id)" ng-blur="ctrl.analyticsController.saveThreshold(analyticUnit.id)"
/> />

Loading…
Cancel
Save