Added __y_label_trim as available var in link

Fix #147 . Flux (BETA) adds a blank space on `_y_label` and it breaks
with link built when using the var.

This PR add a new variable to be used on link and removes leading and
trailing characters from `__y_label`
This commit is contained in:
sbengo
2020-11-27 09:22:13 +01:00
committed by Sergio Bengoechea Guerrero
parent 021633670a
commit c234a49792
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -215,6 +215,9 @@ System.register(["d3", "jquery", "lodash"], function (_export, _context) {
};
scopedVars["__y_label"] = {
value: yLabel
};
scopedVars["__y_label_trim"] = {
value: yLabel.trim()
}; // Grafana 7.0 compatible
scopedVars["__url_time_range"] = {
+1 -1
View File
File diff suppressed because one or more lines are too long