Commit a30cf204 by Daniel Lee

influx: small ux changes to query editor

parent 952cc1d8
...@@ -75,19 +75,19 @@ ...@@ -75,19 +75,19 @@
<div class="gf-form-inline"> <div class="gf-form-inline">
<div class="gf-form"> <div class="gf-form">
<label class="gf-form-label query-keyword width-7">ORDER BY</label> <label class="gf-form-label query-keyword width-7">ORDER BY</label>
<label class="gf-form-label query-part">time</label> <label class="gf-form-label query-part width-4">time</label>
<div class="gf-form-select-wrapper"> <div class="gf-form-select-wrapper">
<select class="gf-form-input gf-size-auto" ng-model="ctrl.target.orderByTime" ng-options="f.value as f.text for f in ctrl.orderByTime" ng-change="ctrl.refresh()"></select> <select class="gf-form-input gf-size-auto" ng-model="ctrl.target.orderByTime" ng-options="f.value as f.text for f in ctrl.orderByTime" ng-change="ctrl.refresh()"></select>
</div> </div>
</div> </div>
<div class="gf-form max-width-30"> <div class="gf-form max-width-14">
<label class="gf-form-label query-keyword width-7">LIMIT</label> <label class="gf-form-label query-keyword width-5">LIMIT</label>
<input type="text" class="gf-form-input" ng-model="ctrl.target.limit" spellcheck='false' placeholder="No Limit" ng-blur="ctrl.refresh()"> <input type="text" class="gf-form-input" ng-model="ctrl.target.limit" spellcheck='false' placeholder="No Limit" ng-blur="ctrl.refresh()">
</div> </div>
<div class="gf-form max-width-30"> <div class="gf-form max-width-14">
<label class="gf-form-label query-keyword width-7">SLIMIT</label> <label class="gf-form-label query-keyword width-5">SLIMIT</label>
<input type="text" class="gf-form-input" ng-model="ctrl.target.slimit" spellcheck='false' placeholder="No Limit" ng-blur="ctrl.refresh()"> <input type="text" class="gf-form-input" ng-model="ctrl.target.slimit" spellcheck='false' placeholder="No Limit" ng-blur="ctrl.refresh()">
</div> </div>
<div class="gf-form gf-form--grow"> <div class="gf-form gf-form--grow">
......
...@@ -34,8 +34,8 @@ export class InfluxQueryCtrl extends QueryCtrl { ...@@ -34,8 +34,8 @@ export class InfluxQueryCtrl extends QueryCtrl {
{text: 'Table', value: 'table'}, {text: 'Table', value: 'table'},
]; ];
this.orderByTime = [ this.orderByTime = [
{text: 'Ascending', value: 'ASC'}, {text: 'ASC', value: 'ASC'},
{text: 'Descending', value: 'DESC'}, {text: 'DESC', value: 'DESC'},
]; ];
this.policySegment = uiSegmentSrv.newSegment(this.target.policy); this.policySegment = uiSegmentSrv.newSegment(this.target.policy);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment