Просмотр исходного кода

Merge pull request #3170 from utkarshcmu/opentsdb-ctrl

Fixed opentsdb queryctrl uncheck Rate UI bug
Torkel Ödegaard 10 лет назад
Родитель
Сommit
8f81c97aaa
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      public/app/plugins/datasource/opentsdb/partials/query.editor.html

+ 4 - 4
public/app/plugins/datasource/opentsdb/partials/query.editor.html

@@ -162,20 +162,20 @@
 			<editor-checkbox text="Counter" model="target.isCounter" change="targetBlur()"></editor-checkbox>
 			<editor-checkbox text="Counter" model="target.isCounter" change="targetBlur()"></editor-checkbox>
 		</li>
 		</li>
 
 
-		<li class="tight-form-item" ng-hide="!target.isCounter">
+		<li class="tight-form-item" ng-hide="!target.isCounter || !target.shouldComputeRate">
 			Counter Max:
 			Counter Max:
 		</li>
 		</li>
 
 
-		<li ng-hide="!target.isCounter">
+		<li ng-hide="!target.isCounter || !target.shouldComputeRate">
 			<input type="text" class="tight-form-input input-small" ng-disabled="!target.shouldComputeRate"
 			<input type="text" class="tight-form-input input-small" ng-disabled="!target.shouldComputeRate"
 			ng-model="target.counterMax" spellcheck='false'
 			ng-model="target.counterMax" spellcheck='false'
 			placeholder="max value" ng-model-onblur
 			placeholder="max value" ng-model-onblur
 			ng-blur="targetBlur()"></input>
 			ng-blur="targetBlur()"></input>
 		</li>
 		</li>
-		<li class="tight-form-item" ng-hide="!target.isCounter">
+		<li class="tight-form-item" ng-hide="!target.isCounter || !target.shouldComputeRate">
 			Reset Value:
 			Reset Value:
 		</li>
 		</li>
-		<li ng-hide="!target.isCounter">
+		<li ng-hide="!target.isCounter || !target.shouldComputeRate">
 			<input type="text" class="tight-form-input input-small" ng-disabled="!target.shouldComputeRate"
 			<input type="text" class="tight-form-input input-small" ng-disabled="!target.shouldComputeRate"
 			ng-model="target.counterResetValue" spellcheck='false'
 			ng-model="target.counterResetValue" spellcheck='false'
 			placeholder="reset value" ng-model-onblur
 			placeholder="reset value" ng-model-onblur