mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Implemented Opentsdb MultiSelect Templating.
This commit is contained in:
parent
f632b3b029
commit
024a319512
@ -217,7 +217,7 @@
|
||||
Multi format
|
||||
</li>
|
||||
<li ng-show="current.multi">
|
||||
<select class="input-medium tight-form-input last" ng-model="current.multiFormat" ng-change="runQuery()" ng-options="f for f in ['glob', 'regex values', 'lucene']"></select>
|
||||
<select class="input-medium tight-form-input last" ng-model="current.multiFormat" ng-change="runQuery()" ng-options="f for f in ['glob', 'regex values', 'lucene', 'pipe']"></select>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
|
@ -46,6 +46,9 @@ function (angular, _) {
|
||||
case "lucene": {
|
||||
return '(' + value.join(' OR ') + ')';
|
||||
}
|
||||
case "pipe": {
|
||||
return value.join('|');
|
||||
}
|
||||
default: {
|
||||
return '{' + value.join(',') + '}';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user