mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
polish(influxdb): minor improvements to influxdb editor raw query editor
This commit is contained in:
parent
db9c288050
commit
141e395489
@ -55,12 +55,12 @@
|
|||||||
<metric-segment segment="segment" get-options="getTagsOrValues(segment, $index)" on-change="tagSegmentUpdated(segment, $index)"></metric-segment>
|
<metric-segment segment="segment" get-options="getTagsOrValues(segment, $index)" on-change="tagSegmentUpdated(segment, $index)"></metric-segment>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="clearfix"></div>
|
|
||||||
|
|
||||||
<div style="padding: 10px" ng-if="target.rawQuery">
|
<div class="tight-form-flex-wrapper" ng-show="target.rawQuery">
|
||||||
<textarea ng-model="target.query" rows="8" spellcheck="false" style="width: 100%; box-sizing: border-box;" ng-blur="get_data()"></textarea>
|
<input type="text" class="tight-form-clear-input" ng-model="target.query" spellcheck="false" style="width: 100%;" ng-blur="get_data()"></input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-hide="target.rawQuery">
|
<div ng-hide="target.rawQuery">
|
||||||
|
@ -23,7 +23,6 @@ function (angular, _, InfluxQueryBuilder, InfluxQuery, queryPart) {
|
|||||||
$scope.resultFormats = [
|
$scope.resultFormats = [
|
||||||
{text: 'Time series', value: 'time_series'},
|
{text: 'Time series', value: 'time_series'},
|
||||||
{text: 'Table', value: 'table'},
|
{text: 'Table', value: 'table'},
|
||||||
{text: 'JSON field', value: 'json_field'},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!$scope.target.measurement) {
|
if (!$scope.target.measurement) {
|
||||||
|
@ -59,6 +59,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tight-form-flex-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
.grafana-metric-options {
|
.grafana-metric-options {
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user