feat(panel-menu): remove duplicate in fullscreen

closes #4064
pull/4137/head
bergquist 9 years ago
parent ab7bbd5a44
commit 6590e6fae8
  1. 4
      public/app/features/panel/panel_ctrl.ts

@ -96,7 +96,9 @@ export class PanelCtrl {
let menu = [];
menu.push({text: 'View', click: 'ctrl.viewPanel(); dismiss();'});
menu.push({text: 'Edit', click: 'ctrl.editPanel(); dismiss();', role: 'Editor'});
menu.push({text: 'Duplicate', click: 'ctrl.duplicate()', role: 'Editor' });
if (!this.fullscreen) { // duplication is not supported in fullscreen mode
menu.push({ text: 'Duplicate', click: 'ctrl.duplicate()', role: 'Editor' });
}
menu.push({text: 'Share', click: 'ctrl.sharePanel(); dismiss();'});
return menu;
}

Loading…
Cancel
Save