DS config: hide alert options when not enable
This commit is contained in:
2
dist/datasource-zabbix/partials/config.html
vendored
2
dist/datasource-zabbix/partials/config.html
vendored
@@ -99,6 +99,7 @@
|
|||||||
label="Enable alerting"
|
label="Enable alerting"
|
||||||
checked="ctrl.current.jsonData.alerting">
|
checked="ctrl.current.jsonData.alerting">
|
||||||
</gf-form-switch>
|
</gf-form-switch>
|
||||||
|
<div ng-if="ctrl.current.jsonData.alerting">
|
||||||
<gf-form-switch class="gf-form" label-class="width-9"
|
<gf-form-switch class="gf-form" label-class="width-9"
|
||||||
label="Add thresholds"
|
label="Add thresholds"
|
||||||
checked="ctrl.current.jsonData.addThresholds">
|
checked="ctrl.current.jsonData.addThresholds">
|
||||||
@@ -114,4 +115,5 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -99,6 +99,7 @@
|
|||||||
label="Enable alerting"
|
label="Enable alerting"
|
||||||
checked="ctrl.current.jsonData.alerting">
|
checked="ctrl.current.jsonData.alerting">
|
||||||
</gf-form-switch>
|
</gf-form-switch>
|
||||||
|
<div ng-if="ctrl.current.jsonData.alerting">
|
||||||
<gf-form-switch class="gf-form" label-class="width-9"
|
<gf-form-switch class="gf-form" label-class="width-9"
|
||||||
label="Add thresholds"
|
label="Add thresholds"
|
||||||
checked="ctrl.current.jsonData.addThresholds">
|
checked="ctrl.current.jsonData.addThresholds">
|
||||||
@@ -114,4 +115,5 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user