Commit 6590e6fa by bergquist

feat(panel-menu): remove duplicate in fullscreen

closes #4064
parent ab7bbd5a
...@@ -96,7 +96,9 @@ export class PanelCtrl { ...@@ -96,7 +96,9 @@ export class PanelCtrl {
let menu = []; let menu = [];
menu.push({text: 'View', click: 'ctrl.viewPanel(); dismiss();'}); menu.push({text: 'View', click: 'ctrl.viewPanel(); dismiss();'});
menu.push({text: 'Edit', click: 'ctrl.editPanel(); dismiss();', role: 'Editor'}); 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();'}); menu.push({text: 'Share', click: 'ctrl.sharePanel(); dismiss();'});
return menu; return menu;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment