From 6fb81f54bbf954ebe25b5db4fde7e9bff8ce79e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 24 Oct 2016 14:12:19 +0200 Subject: [PATCH] ux(): minor fix --- public/app/features/dashboard/row/row.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/row/row.ts b/public/app/features/dashboard/row/row.ts index 6e966c2e8f9..26c61f4a3b0 100644 --- a/public/app/features/dashboard/row/row.ts +++ b/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() {