mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@@ -19,6 +19,7 @@ export default class GraphiteQuery {
|
|||||||
this.datasource = datasource;
|
this.datasource = datasource;
|
||||||
this.target = target;
|
this.target = target;
|
||||||
this.templateSrv = templateSrv;
|
this.templateSrv = templateSrv;
|
||||||
|
this.scopedVars = scopedVars;
|
||||||
this.parseTarget();
|
this.parseTarget();
|
||||||
|
|
||||||
this.removeTagValue = '-- remove tag --';
|
this.removeTagValue = '-- remove tag --';
|
||||||
@@ -162,7 +163,9 @@ export default class GraphiteQuery {
|
|||||||
|
|
||||||
updateModelTarget(targets) {
|
updateModelTarget(targets) {
|
||||||
const wrapFunction = (target: string, func: any) => {
|
const wrapFunction = (target: string, func: any) => {
|
||||||
return func.render(target, this.templateSrv.replace);
|
return func.render(target, (value: string) => {
|
||||||
|
return this.templateSrv.replace(value, this.scopedVars);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this.target.textEditor) {
|
if (!this.target.textEditor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user