ace: minor changes to ace directive

This commit is contained in:
Torkel Ödegaard
2017-08-09 11:43:02 +02:00
parent 80f5c914e8
commit 459a8ed695
3 changed files with 18 additions and 39 deletions

View File

@@ -2,7 +2,7 @@
<div class="gf-form-inline">
<div class="gf-form gf-form--grow">
<code-editor content="ctrl.target.expr" on-change="ctrl.refreshMetricData()"
get-metrics="ctrl.getMetricsAutocomplete" data-mode="prometheus">
get-completions="ctrl.getCompletions($query)" data-mode="prometheus">
</code-editor>
</div>
</div>
@@ -40,17 +40,6 @@
</div>
</div>
<div class="gf-form gf-form--grow">
<div class="gf-form-label gf-form-label--grow"></div>
</div>
</div>
<div class="gf-form-inline">
<div class="gf-form max-width-26">
<label class="gf-form-label width-8">Metric lookup</label>
<input type="text" class="gf-form-input" ng-model="ctrl.target.metric" spellcheck='false' bs-typeahead="ctrl.suggestMetrics" placeholder="metric name" data-min-length=0 data-items=100>
</div>
<div class="gf-form">
<label class="gf-form-label width-6">Format as</label>
<div class="gf-form-select-wrapper width-8">
@@ -68,4 +57,5 @@
</div>
</div>
</query-editor-row>