소스 검색

changed copied message and added forced render for width change

Patrick O'Carroll 7 년 전
부모
커밋
23f644c2f5
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      public/app/features/dashboard/dashgrid/DashboardGrid.tsx
  2. 1 1
      public/app/features/panel/panel_ctrl.ts

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