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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user