From a64efebb197046d794927d4b716bbf7d007427aa Mon Sep 17 00:00:00 2001 From: chris-heath Date: Fri, 4 Sep 2020 13:41:19 -0400 Subject: [PATCH] fix for Grafana versions prior to v6.7 --- src/status_ctrl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/status_ctrl.js b/src/status_ctrl.js index e7287f17..bdfe842d 100644 --- a/src/status_ctrl.js +++ b/src/status_ctrl.js @@ -627,7 +627,11 @@ export class StatusPluginCtrl extends MetricsPanelCtrl { } link(scope, elem, attrs, ctrl) { - this.$panelContainer = elem; + if (elem.find('.panel-container').length === 1) { + this.$panelContainer = elem.find('.panel-container'); + } else { + this.$panelContainer = elem; + } this.$panelContainer.addClass("st-card"); this.$panelContoller = ctrl; }