Explorar o código

Change xaxis min and max form input types to number

Sofia Papagiannaki %!s(int64=7) %!d(string=hai) anos
pai
achega
96e1804d55
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      public/app/plugins/panel/graph/axes_editor.html

+ 2 - 2
public/app/plugins/panel/graph/axes_editor.html

@@ -70,11 +70,11 @@
 		<div class="gf-form-inline" ng-if="ctrl.panel.xaxis.mode === 'histogram'">
 			<div class="gf-form">
 				<label class="gf-form-label width-6">X-Min</label>
-				<input type="text" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.min" ng-change="ctrl.render()" ng-model-onblur>
+				<input type="number" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.min" ng-change="ctrl.render()" ng-model-onblur>
 			</div>
 			<div class="gf-form">
 				<label class="gf-form-label width-6">X-Max</label>
-				<input type="text" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.max" ng-change="ctrl.render()" ng-model-onblur>
+				<input type="number" class="gf-form-input width-5" placeholder="auto" empty-to-null ng-model="ctrl.panel.xaxis.max" ng-change="ctrl.render()" ng-model-onblur>
 			</div>
 		</div>