The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Dashboard: Deactivate delete and navigation actions in edit mode (#15590)
Raphaël Bosi7256abad3aba
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.ts b/packages/twenty-front/src/modules/page-layout/hooks/useSetIsPageLayoutInEditMode.tsindex 061877ed9b4..3c6eb022e04 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],