Просмотр исходного кода

changed copied message and added forced render for width change

Patrick O'Carroll 7 лет назад
Родитель
Сommit
23f644c2f5

+ 1 - 0
public/app/features/dashboard/dashgrid/DashboardGrid.tsx

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

+ 1 - 1
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) {