Commit fe6a7c58 by Torkel Ödegaard

Fixed issue casued by recent angular upgrade and stateful filter, casued…

Fixed issue casued by recent angular upgrade and stateful filter, casued template vars in graph titles no update properly, angular was not updated in 1.8.1 so this does affect any released version, Closes #892
parent dac3cb15
...@@ -56,9 +56,13 @@ define(['angular', 'jquery', 'lodash', 'moment'], function (angular, $, _, momen ...@@ -56,9 +56,13 @@ define(['angular', 'jquery', 'lodash', 'moment'], function (angular, $, _, momen
}); });
module.filter('interpolateTemplateVars', function(templateSrv) { module.filter('interpolateTemplateVars', function(templateSrv) {
return function(text) { function interpolateTemplateVars(text) {
return templateSrv.replaceWithText(text); return templateSrv.replaceWithText(text);
}; }
interpolateTemplateVars.$stateful = true;
return interpolateTemplateVars;
}); });
}); });
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