use typeahead value in graphite find requests

This commit is contained in:
Dan Cech 2017-12-27 13:53:12 -05:00
parent ff759b0ef7
commit 7c1be021ac
No known key found for this signature in database
GPG Key ID: 6F1146C5B66FBD41

View File

@ -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',