The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fixed dropdown menu field settings (#8374)
Lucas Bordeau045f569d623f
diff --git a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldActiveActionDropdown.tsx b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldActiveActionDropdown.tsxindex 4391d783d4b..765e25811b9 100644--- a/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldActiveActionDropdown.tsx+++ b/packages/twenty-front/src/modules/settings/data-model/object-details/components/SettingsObjectFieldActiveActionDropdown.tsx@@ -9,7 +9,6 @@ import {} from 'twenty-ui';import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';-import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu';import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';@@ -57,30 +56,29 @@ export const SettingsObjectFieldActiveActionDropdown = ({accent="tertiary"/>}+ dropdownMenuWidth={160}dropdownComponents={- <DropdownMenu width="160px">- <DropdownMenuItemsContainer>+ <DropdownMenuItemsContainer>+ <MenuItem+ text={isCustomField ? 'Edit' : 'View'}+ LeftIcon={isCustomField ? IconPencil : IconEye}+ onClick={handleEdit}+ />+ {!!onSetAsLabelIdentifier && (<MenuItem- text={isCustomField ? 'Edit' : 'View'}- LeftIcon={isCustomField ? IconPencil : IconEye}- onClick={handleEdit}+ text="Set as record text"+ LeftIcon={IconTextSize}+ onClick={handleSetAsLabelIdentifier}/>- {!!onSetAsLabelIdentifier && (- <MenuItem- text="Set as record text"- LeftIcon={IconTextSize}- onClick={handleSetAsLabelIdentifier}- />- )}- {!!onDeactivate && (- <MenuItem- text="Deactivate"- LeftIcon={IconArchive}- onClick={handleDeactivate}- />- )}- </DropdownMenuItemsContainer>- </DropdownMenu>+ )}+ {!!onDeactivate && (+ <MenuItem+ text="Deactivate"+ LeftIcon={IconArchive}+ onClick={handleDeactivate}+ />+ )}+ </DropdownMenuItemsContainer>}dropdownHotkeyScope={{scope: dropdownId,