Skip to content

Commit

Permalink
influx: small ux changes to query editor
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellee committed Mar 9, 2017
1 parent 952cc1d commit a30cf20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@
<div class="gf-form-inline">
<div class="gf-form">
<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">
<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 class="gf-form max-width-30">
<label class="gf-form-label query-keyword width-7">LIMIT</label>

<div class="gf-form max-width-14">
<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()">
</div>
<div class="gf-form max-width-30">
<label class="gf-form-label query-keyword width-7">SLIMIT</label>

<div class="gf-form max-width-14">
<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()">
</div>
<div class="gf-form gf-form--grow">
Expand Down
4 changes: 2 additions & 2 deletions public/app/plugins/datasource/influxdb/query_ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class InfluxQueryCtrl extends QueryCtrl {
{text: 'Table', value: 'table'},
];
this.orderByTime = [
{text: 'Ascending', value: 'ASC'},
{text: 'Descending', value: 'DESC'},
{text: 'ASC', value: 'ASC'},
{text: 'DESC', value: 'DESC'},
];

this.policySegment = uiSegmentSrv.newSegment(this.target.policy);
Expand Down

0 comments on commit a30cf20

Please sign in to comment.