Browse Source

No data threshold #134 (#148)

master
sanke1 6 years ago committed by rozetko
parent
commit
c5a0ef35e8
  1. 3
      src/models/threshold.ts
  2. 4
      src/partials/tab_analytics.html

3
src/models/threshold.ts

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

4
src/partials/tab_analytics.html

@ -64,7 +64,7 @@
</a> </a>
</label> </label>
<select class="gf-form-input width-5" <select class="gf-form-input width-7"
ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).condition" ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).condition"
ng-options="type for type in ctrl.analyticsController.conditions" ng-options="type for type in ctrl.analyticsController.conditions"
ng-if="analyticUnit.detectorType === 'threshold'" ng-if="analyticUnit.detectorType === 'threshold'"
@ -75,7 +75,7 @@
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'" 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