Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit d8866c4

Browse files
committed
fix for dropdowns allow custom queries
This allows using template variables in the queries. A refactoring of the gf-form-dropdown component in Grafana means it has to have the allow-custom property set to true to allow this.
1 parent a986ea5 commit d8866c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/partials/query.editor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<div ng-if="!ctrl.target.rawQuery">
1212
<div class="gf-form">
1313
<gf-form-dropdown model="ctrl.target.target"
14+
allow-custom="true"
1415
lookup-text="true"
1516
get-options="ctrl.getOptions($query)"
1617
on-change="ctrl.onChangeInternal()">

src/partials/query.editor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<div ng-if="!ctrl.target.rawQuery">
1212
<div class="gf-form">
1313
<gf-form-dropdown model="ctrl.target.target"
14+
allow-custom="true"
1415
lookup-text="true"
1516
get-options="ctrl.getOptions($query)"
1617
on-change="ctrl.onChangeInternal()">

0 commit comments

Comments
 (0)