From a9030757edaf8ac5ca9e256b12008cdaf619e41c Mon Sep 17 00:00:00 2001 From: Thomas Dax Date: Tue, 30 Jan 2024 08:13:18 +0100 Subject: [PATCH] Remove 'Duplicate' from PageTree context menu (#1634) We decided to retire the duplicate pattern because - it adds additional complexity - the same thing can be achieved via copy/paste with little additional effort so I removed the duplicate option from the PageTree Duplicate only existed in the context menu. It was apparently never possible to duplicate the selected items. --- Before: Bildschirmfoto 2024-01-29 um 16 24 53 After: Bildschirmfoto 2024-01-29 um 16 24 36 --- Closes COM-367 --- .../src/pages/pageTree/CopyPasteMenuItem.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/admin/cms-admin/src/pages/pageTree/CopyPasteMenuItem.tsx b/packages/admin/cms-admin/src/pages/pageTree/CopyPasteMenuItem.tsx index 1289c7e656..0b0ea64a9a 100644 --- a/packages/admin/cms-admin/src/pages/pageTree/CopyPasteMenuItem.tsx +++ b/packages/admin/cms-admin/src/pages/pageTree/CopyPasteMenuItem.tsx @@ -41,17 +41,6 @@ export const CopyPasteMenuItem = ({ page }: Props): React.ReactElement => { > - } - onClick={async () => { - const subTree = subTreeFromNode(page, tree); - const pagesAsArray = treeMapToArray(subTree, "root"); - const pages = await prepareForClipboard(pagesAsArray); - await sendPages(page.parentId, pages, { targetPos: page.pos + 1 }); - }} - > - - ); };