From 23f644c2f5baf5f446c375779caacd6c4d851b93 Mon Sep 17 00:00:00 2001 From: Patrick O'Carroll Date: Wed, 18 Apr 2018 10:34:43 +0200 Subject: [PATCH] changed copied message and added forced render for width change --- public/app/features/dashboard/dashgrid/DashboardGrid.tsx | 1 + public/app/features/panel/panel_ctrl.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx index 056d5e36cb3..021a520755e 100644 --- a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx @@ -140,6 +140,7 @@ export class DashboardGrid extends React.Component { for (const panel of this.dashboard.panels) { panel.resizeDone(); } + this.triggerForceUpdate(); } updateGridPos(item, layout) { diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 5718be181a4..da8adc4f908 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -262,7 +262,7 @@ export class PanelCtrl { copyPanel() { store.set(LS_PANEL_COPY_KEY, JSON.stringify(this.panel.getSaveModel())); - appEvents.emit('alert-success', ['Panel copied. Open new panel to paste']); + appEvents.emit('alert-success', ['Panel copied. Open Add Panel to paste']); } replacePanel(newPanel, oldPanel) {