From 6590e6fae8a4c117d6c7d2baf092ed1ec05cf19f Mon Sep 17 00:00:00 2001 From: bergquist Date: Fri, 19 Feb 2016 14:16:17 +0100 Subject: [PATCH] feat(panel-menu): remove duplicate in fullscreen closes #4064 --- public/app/features/panel/panel_ctrl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 96b1a6d9d4d..87fdb2390fa 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/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; }