New record button on dashboard index page and reorder (#15367)
closes https://discord.com/channels/1130383047699738754/1430825009773019258 and https://discord.com/channels/1130383047699738754/1430601431542530249 before: index page: <img width="1187" height="644" alt="Screenshot 2025-10-27 at 12 42 31" src="https://github.com/user-attachments/assets/9bb0feba-b1e8-4436-a965-0a53abe74364" /> record page: read mode: <img width="1303" height="823" alt="Screenshot 2025-10-27 at 14 00 35" src="https://github.com/user-attachments/assets/62e7d18c-8ebd-442f-88a3-7b8bbe200b4e" /> edit mode: <img width="1303" height="824" alt="Screenshot 2025-10-27 at 14 00 52" src="https://github.com/user-attachments/assets/56c6b172-8847-4a68-a792-9c03dc01fb21" /> ----------------------------------------------------------------------------------------------------------------------- after: index page: <img width="1186" height="565" alt="Screenshot 2025-10-27 at 12 41 05" src="https://github.com/user-attachments/assets/4700242b-367b-4fd0-80bc-a1f696f4317c" /> record page: read mode: <img width="1302" height="823" alt="Screenshot 2025-10-27 at 13 58 58" src="https://github.com/user-attachments/assets/4f0fe715-f216-4586-a41d-b7e5520f8d4a" /> edit mode: <img width="1300" height="824" alt="Screenshot 2025-10-27 at 13 59 08" src="https://github.com/user-attachments/assets/cb15f327-7c0c-4b0a-ad2e-f1833c0f0134" />
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { SingleRecordActionKeys } from '@/action-menu/actions/record-actions/single-record/types/SingleRecordActionsKey';
|
||||
import { forceRegisteredActionsByKeyState } from '@/action-menu/actions/states/forceRegisteredActionsMapComponentState';
|
||||
import { PageLayoutSingleRecordActionKeys } from '@/page-layout/actions/PageLayoutSingleRecordActionKeys';
|
||||
import { PageLayoutComponentInstanceContext } from '@/page-layout/states/contexts/PageLayoutComponentInstanceContext';
|
||||
@@ -26,6 +27,8 @@ export const useSetIsPageLayoutInEditMode = (pageLayoutIdFromProps: string) => {
|
||||
[PageLayoutSingleRecordActionKeys.EDIT_LAYOUT]: !value,
|
||||
[PageLayoutSingleRecordActionKeys.SAVE_LAYOUT]: value,
|
||||
[PageLayoutSingleRecordActionKeys.CANCEL_LAYOUT_EDITION]: value,
|
||||
[PageLayoutSingleRecordActionKeys.ADD_TO_FAVORITES_READ_MODE]: !value,
|
||||
[SingleRecordActionKeys.ADD_TO_FAVORITES]: value,
|
||||
}));
|
||||
},
|
||||
[isPageLayoutInEditModeState],
|
||||
|
||||
Reference in New Issue
Block a user