Remove more button in edit mode (#19281)

Remove more button in edit mode
This commit is contained in:
Raphaël Bosi
2026-04-02 18:29:47 +02:00
committed by GitHub
parent 331c223e73
commit 30517eb06c
2 changed files with 2 additions and 8 deletions
@@ -7,7 +7,6 @@ import { isLayoutCustomizationModeEnabledState } from '@/layout-customization/st
import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
import { RecordIndexPageHeaderIcon } from '@/object-record/record-index/components/RecordIndexPageHeaderIcon';
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
import { PageHeaderToggleSidePanelButton } from '@/ui/layout/page-header/components/PageHeaderToggleSidePanelButton';
import { PageHeader } from '@/ui/layout/page/components/PageHeader';
import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
@@ -78,10 +77,8 @@ export const RecordIndexPageHeader = () => {
{isDefined(contextStoreCurrentViewId) && (
<>
<RecordIndexCommandMenu />
{!isLayoutCustomizationModeEnabled ? (
{!isLayoutCustomizationModeEnabled && (
<CommandMenuItemMoreActionsButton />
) : (
<PageHeaderToggleSidePanelButton />
)}
</>
)}