Torkel Ödegaard 9 лет назад
Родитель
Сommit
6fb81f54bb
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      public/app/features/dashboard/row/row.ts

+ 4 - 1
public/app/features/dashboard/row/row.ts

@@ -10,7 +10,7 @@ export class DashRowCtrl {
   panelPlugins;
 
    /** @ngInject */
-  constructor(private $scope, private $rootScope) {
+  constructor(private $scope, private $rootScope, private $timeout) {
     this.panelPlugins = config.panels;
   }
 
@@ -34,6 +34,9 @@ export class DashRowCtrl {
 
   addPanel(panel) {
     this.dashboard.addPanel(panel, this.row);
+    this.$timeout(() => {
+      this.$scope.$broadcast('render');
+    });
   }
 
   editRow() {