From 7256abad3abaf46b42ec92242f6f1fa6306e1cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Tue, 4 Nov 2025 14:13:36 +0100 Subject: [PATCH] Dashboard: Deactivate delete and navigation actions in edit mode (#15590) https://github.com/user-attachments/assets/74256232-dfb1-4cb5-9fd8-854e0b3b7c09 --- .../modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts b/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts index 061877ed9b..3c6eb022e0 100644 --- a/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts +++ b/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts @@ -29,6 +29,9 @@ export const useSetIsPageLayoutInEditMode = (pageLayoutIdFromProps: string) => { [PageLayoutSingleRecordActionKeys.CANCEL_LAYOUT_EDITION]: value, [PageLayoutSingleRecordActionKeys.ADD_TO_FAVORITES_READ_MODE]: !value, [SingleRecordActionKeys.ADD_TO_FAVORITES]: value, + [SingleRecordActionKeys.DELETE]: !value, + [SingleRecordActionKeys.NAVIGATE_TO_PREVIOUS_RECORD]: !value, + [SingleRecordActionKeys.NAVIGATE_TO_NEXT_RECORD]: !value, })); }, [isPageLayoutInEditModeState],