DS config: hide alert options when not enable

This commit is contained in:
Alexander Zobnin
2017-07-22 21:34:48 +03:00
parent 75f041f841
commit e5f936c0cb
2 changed files with 30 additions and 26 deletions

View File

@@ -99,6 +99,7 @@
label="Enable alerting"
checked="ctrl.current.jsonData.alerting">
</gf-form-switch>
<div ng-if="ctrl.current.jsonData.alerting">
<gf-form-switch class="gf-form" label-class="width-9"
label="Add thresholds"
checked="ctrl.current.jsonData.addThresholds">
@@ -114,4 +115,5 @@
</select>
</div>
</div>
</div>
</div>

View File

@@ -99,6 +99,7 @@
label="Enable alerting"
checked="ctrl.current.jsonData.alerting">
</gf-form-switch>
<div ng-if="ctrl.current.jsonData.alerting">
<gf-form-switch class="gf-form" label-class="width-9"
label="Add thresholds"
checked="ctrl.current.jsonData.addThresholds">
@@ -114,4 +115,5 @@
</select>
</div>
</div>
</div>
</div>