mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(templating): updates to template variable forms
This commit is contained in:
@@ -335,7 +335,7 @@ function (angular, _, dateMath) {
|
||||
query.tags = angular.copy(target.tags);
|
||||
if(query.tags){
|
||||
for(var key in query.tags){
|
||||
query.tags[key] = templateSrv.replace(query.tags[key], options.scopedVars);
|
||||
query.tags[key] = templateSrv.replace(query.tags[key], options.scopedVars, 'pipe');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -355,7 +355,7 @@ function (angular, _, dateMath) {
|
||||
} else {
|
||||
return target.metric === metricData.metric &&
|
||||
_.all(target.tags, function(tagV, tagK) {
|
||||
interpolatedTagValue = templateSrv.replace(tagV, options.scopedVars);
|
||||
interpolatedTagValue = templateSrv.replace(tagV, options.scopedVars, 'pipe');
|
||||
return metricData.tags[tagK] === interpolatedTagValue || interpolatedTagValue === "*";
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user