Skip to content

Commit

Permalink
fix for Grafana versions prior to v6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-heath committed Sep 4, 2020
1 parent c6a54f6 commit a64efeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/status_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a64efeb

Please sign in to comment.