Bring back companies focused actions (#15961)
We want to release the readonly mode of record page layouts before the edit mode. We will think about adding actions related to page layout edition later. https://github.com/user-attachments/assets/2c2213d2-80b8-4d6f-b4bf-e023ac9d2906 Closes https://github.com/twentyhq/core-team-issues/issues/1818
This commit is contained in:
committed by
GitHub
parent
c7783de930
commit
9c6d8330df
@@ -1,6 +1,5 @@
|
||||
import { DASHBOARD_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/DashboardActionsConfig';
|
||||
import { DEFAULT_RECORD_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig';
|
||||
import { RECORD_PAGE_LAYOUT_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/RecordPageLayoutActionsConfig';
|
||||
import { WORKFLOW_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/WorkflowActionsConfig';
|
||||
import { WORKFLOW_RUNS_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig';
|
||||
import { WORKFLOW_VERSIONS_ACTIONS_CONFIG } from '@/action-menu/actions/record-actions/constants/WorkflowVersionsActionsConfig';
|
||||
@@ -12,10 +11,8 @@ import { isDefined } from 'twenty-shared/utils';
|
||||
|
||||
export const getActionConfig = ({
|
||||
objectMetadataItem,
|
||||
isRecordPageLayoutEnabled,
|
||||
}: {
|
||||
objectMetadataItem?: ObjectMetadataItem;
|
||||
isRecordPageLayoutEnabled: boolean;
|
||||
}): Record<string, ActionConfig> => {
|
||||
if (!isDefined(objectMetadataItem)) {
|
||||
return {};
|
||||
@@ -38,10 +35,6 @@ export const getActionConfig = ({
|
||||
return WORKSPACE_MEMBERS_ACTIONS_CONFIG;
|
||||
}
|
||||
case CoreObjectNameSingular.Company: {
|
||||
if (isRecordPageLayoutEnabled) {
|
||||
return RECORD_PAGE_LAYOUT_ACTIONS_CONFIG;
|
||||
}
|
||||
|
||||
return DEFAULT_RECORD_ACTIONS_CONFIG;
|
||||
}
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user