Commit 7c1be021 by Dan Cech

use typeahead value in graphite find requests

parent ff759b0e
......@@ -106,7 +106,10 @@ export class GraphiteQueryCtrl extends QueryCtrl {
}
getAltSegments(index, prefix) {
var query = index === 0 ? '*' : this.queryModel.getSegmentPathUpTo(index) + '.*';
var query = '*' + prefix + '*';
if (index > 0) {
query = this.queryModel.getSegmentPathUpTo(index) + '.' + query;
}
var options = {
range: this.panelCtrl.range,
requestId: 'get-alt-segments',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment