Add PageHeaderOpenCommandMenuButton on Record index page header for command menu v1 (#10576)

The only way to open the command menu in v1 on the index page was
through the shortcut, but since important actions (export and see
deleted records) have been moved to the command menu, we want an easy
way to open it on v1.


https://github.com/user-attachments/assets/b446f385-da69-4dcc-af9d-74d36b52e94f
This commit is contained in:
Raphaël Bosi
2025-02-28 11:42:02 +01:00
committed by GitHub
parent 0c4a984110
commit 4d7ba29d9f
2 changed files with 5 additions and 5 deletions

View File

@ -67,11 +67,10 @@ export const RecordIndexPageHeader = () => {
))}
{isCommandMenuV2Enabled && (
<>
<RecordIndexActionMenu indexId={recordIndexId} />
<PageHeaderOpenCommandMenuButton />
</>
<RecordIndexActionMenu indexId={recordIndexId} />
)}
<PageHeaderOpenCommandMenuButton />
</PageHeader>
);
};

View File

@ -2,6 +2,7 @@ import {
AnimatedButton,
IconButton,
IconDotsVertical,
IconX,
getOsControlSymbol,
useIsMobile,
} from 'twenty-ui';
@ -144,7 +145,7 @@ export const PageHeaderOpenCommandMenuButton = () => {
/>
) : (
<IconButton
Icon={IconDotsVertical}
Icon={isCommandMenuOpened ? IconX : IconDotsVertical}
size="medium"
dataTestId="more-showpage-button"
accent="default"