changed copied message and added forced render for width change

This commit is contained in:
Patrick O'Carroll
2018-04-18 10:34:43 +02:00
parent 0120023aba
commit 23f644c2f5
2 changed files with 2 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ export class DashboardGrid extends React.Component<DashboardGridProps, any> {
for (const panel of this.dashboard.panels) { for (const panel of this.dashboard.panels) {
panel.resizeDone(); panel.resizeDone();
} }
this.triggerForceUpdate();
} }
updateGridPos(item, layout) { updateGridPos(item, layout) {

View File

@@ -262,7 +262,7 @@ export class PanelCtrl {
copyPanel() { copyPanel() {
store.set(LS_PANEL_COPY_KEY, JSON.stringify(this.panel.getSaveModel())); 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) { replacePanel(newPanel, oldPanel) {