mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
Merge pull request #140 from flant/fix_grafana_7_2
fix: Grafana 7.2 compatibility
This commit is contained in:
Vendored
+5
@@ -267,6 +267,11 @@ System.register(["lodash", "./color_legend", "./options_editor", "./tooltip_edit
|
||||
PanelEvents.fallbackToStringEvents();
|
||||
|
||||
_export("renderComplete", renderComplete = 'statusmap-render-complete');
|
||||
} // Grafana 7.2 workaround
|
||||
|
||||
|
||||
if (typeof kbn["intervalToMs"] === "function") {
|
||||
kbn.interval_to_ms = kbn.intervalToMs;
|
||||
}
|
||||
|
||||
migratePanelConfig(_this.panel);
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -153,6 +153,11 @@ class StatusHeatmapCtrl extends MetricsPanelCtrl {
|
||||
renderComplete = 'statusmap-render-complete';
|
||||
}
|
||||
|
||||
// Grafana 7.2 workaround
|
||||
if (typeof kbn["intervalToMs"] === "function") {
|
||||
kbn.interval_to_ms = kbn.intervalToMs;
|
||||
}
|
||||
|
||||
migratePanelConfig(this.panel);
|
||||
_.defaultsDeep(this.panel, this.panelDefaults);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user