Remove more button in edit mode (#19281)
Remove more button in edit mode
This commit is contained in:
+1
-4
@@ -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 />
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
@@ -13,7 +13,6 @@ import { PageLayoutRecordPageRenderer } from '@/object-record/record-show/compon
|
||||
import { RecordShowPageSSESubscribeEffect } from '@/object-record/record-show/components/RecordShowPageSSESubscribeEffect';
|
||||
import { useRecordShowPage } from '@/object-record/record-show/hooks/useRecordShowPage';
|
||||
import { computeRecordShowComponentInstanceId } from '@/object-record/record-show/utils/computeRecordShowComponentInstanceId';
|
||||
import { PageHeaderToggleSidePanelButton } from '@/ui/layout/page-header/components/PageHeaderToggleSidePanelButton';
|
||||
import { PageContainer } from '@/ui/layout/page/components/PageContainer';
|
||||
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
|
||||
import { RecordShowPageHeader } from '~/pages/object-record/RecordShowPageHeader';
|
||||
@@ -57,10 +56,8 @@ export const RecordShowPage = () => {
|
||||
objectRecordId={objectRecordId}
|
||||
>
|
||||
<RecordShowCommandMenu />
|
||||
{!isLayoutCustomizationModeEnabled ? (
|
||||
{!isLayoutCustomizationModeEnabled && (
|
||||
<CommandMenuItemMoreActionsButton />
|
||||
) : (
|
||||
<PageHeaderToggleSidePanelButton />
|
||||
)}
|
||||
</RecordShowPageHeader>
|
||||
<MainContainerLayoutWithSidePanel>
|
||||
|
||||
Reference in New Issue
Block a user