Dashboard: Deactivate delete and navigation actions in edit mode (#15590)

https://github.com/user-attachments/assets/74256232-dfb1-4cb5-9fd8-854e0b3b7c09
This commit is contained in:
Raphaël Bosi
2025-11-04 14:13:36 +01:00
committed by GitHub
parent 3514054235
commit 7256abad3a
@@ -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],