Set default threshold axis to 'left' for panels created before this feature.

This commit is contained in:
ilgizar 2018-02-14 23:44:04 +05:00
parent 57e31ca71b
commit 425586f67d

View File

@ -114,6 +114,7 @@ var template = `
<label class="gf-form-label">Y-Axis</label>
<div class="gf-form-select-wrapper">
<select class="gf-form-input" ng-model="threshold.yaxis"
ng-init="threshold.yaxis = threshold.yaxis === 'left' || threshold.yaxis === 'right' ? threshold.yaxis : 'left'"
ng-options="f for f in ['left', 'right']" ng-change="ctrl.render()" ng-disabled="ctrl.disabled">
</select>
</div>