feat(templating): moved template interpolation into query building

This commit is contained in:
Torkel Ödegaard
2016-03-01 14:36:55 +01:00
parent 2d9a2506b4
commit 23a136d9ef
4 changed files with 30 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ export class InfluxQueryCtrl extends QueryCtrl {
super($scope, $injector);
this.target = this.target;
this.queryModel = new InfluxQuery(this.target);
this.queryModel = new InfluxQuery(this.target, templateSrv, this.panel.scopedVars);
this.queryBuilder = new InfluxQueryBuilder(this.target, this.datasource.database);
this.groupBySegment = this.uiSegmentSrv.newPlusButton();
this.resultFormats = [