Commit 6fb81f54 by Torkel Ödegaard

ux(): minor fix

parent 01627b3a
...@@ -10,7 +10,7 @@ export class DashRowCtrl { ...@@ -10,7 +10,7 @@ export class DashRowCtrl {
panelPlugins; panelPlugins;
/** @ngInject */ /** @ngInject */
constructor(private $scope, private $rootScope) { constructor(private $scope, private $rootScope, private $timeout) {
this.panelPlugins = config.panels; this.panelPlugins = config.panels;
} }
...@@ -34,6 +34,9 @@ export class DashRowCtrl { ...@@ -34,6 +34,9 @@ export class DashRowCtrl {
addPanel(panel) { addPanel(panel) {
this.dashboard.addPanel(panel, this.row); this.dashboard.addPanel(panel, this.row);
this.$timeout(() => {
this.$scope.$broadcast('render');
});
} }
editRow() { editRow() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment