mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 07:49:47 +00:00
Merge pull request #148 from datadope-io/feature/y_trim
Added `__y_label_trim` as available var in link
This commit is contained in:
Vendored
+3
@@ -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"] = {
|
||||
|
||||
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[`__y_label`] = {value: yLabel};
|
||||
scopedVars[`__y_label_trim`] = {value: yLabel.trim()};
|
||||
// Grafana 7.0 compatible
|
||||
scopedVars[`__url_time_range`] = {value: this.panelCtrl.retrieveTimeVar()};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user