mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
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:
committed by
Sergio Bengoechea Guerrero
parent
021633670a
commit
c234a49792
Vendored
+3
@@ -215,6 +215,9 @@ System.register(["d3", "jquery", "lodash"], function (_export, _context) {
|
|||||||
};
|
};
|
||||||
scopedVars["__y_label"] = {
|
scopedVars["__y_label"] = {
|
||||||
value: yLabel
|
value: yLabel
|
||||||
|
};
|
||||||
|
scopedVars["__y_label_trim"] = {
|
||||||
|
value: yLabel.trim()
|
||||||
}; // Grafana 7.0 compatible
|
}; // Grafana 7.0 compatible
|
||||||
|
|
||||||
scopedVars["__url_time_range"] = {
|
scopedVars["__url_time_range"] = {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -184,6 +184,7 @@ export class StatusmapTooltip {
|
|||||||
}
|
}
|
||||||
scopedVars[`__value`] = {value: bucket.value};
|
scopedVars[`__value`] = {value: bucket.value};
|
||||||
scopedVars[`__y_label`] = {value: yLabel};
|
scopedVars[`__y_label`] = {value: yLabel};
|
||||||
|
scopedVars[`__y_label_trim`] = {value: yLabel.trim()};
|
||||||
// Grafana 7.0 compatible
|
// Grafana 7.0 compatible
|
||||||
scopedVars[`__url_time_range`] = {value: this.panelCtrl.retrieveTimeVar()};
|
scopedVars[`__url_time_range`] = {value: this.panelCtrl.retrieveTimeVar()};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user