Torkel Ödegaard 9 anni fa
parent
commit
f8395666e6
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      public/app/features/dashboard/row/add_panel.ts

+ 4 - 3
public/app/features/dashboard/row/add_panel.ts

@@ -90,9 +90,10 @@ export class AddPanelCtrl {
     this.rowCtrl.dropView = 0;
     this.dashboard.addPanel(panel, this.row);
     this.$timeout(() => {
-      this.$rootScope.appEvent('panel-change-view', {
-        fullscreen: true, edit: true, panelId: panel.id
-      });
+      this.$rootScope.broadcast('render');
+      //this.$rootScope.appEvent('panel-change-view', {
+      //  fullscreen: true, edit: true, panelId: panel.id
+      //});
     });
   }
 }