-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7339 implement contextual actions inside the commandmenu #8000
7339 implement contextual actions inside the commandmenu #8000
Conversation
packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/command-menu/components/CommandMenuActions.tsx
Outdated
Show resolved
Hide resolved
...ront/src/modules/action-menu/actions/record-actions/components/DeleteRecordsActionEffect.tsx
Outdated
Show resolved
Hide resolved
.../src/modules/action-menu/actions/record-actions/components/RecordActionMenuEntriesSetter.tsx
Outdated
Show resolved
Hide resolved
.../src/modules/action-menu/actions/record-actions/components/RecordActionMenuEntriesSetter.tsx
Outdated
Show resolved
Hide resolved
@@ -43,5 +48,11 @@ export const RecordIndexActionMenuEffect = () => { | |||
isDropdownOpen, | |||
]); | |||
|
|||
useEffect(() => { | |||
if (isRightDrawerOpen || isCommandMenuOpened) { | |||
closeActionBar(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to openCommandMenu() and useOpenRightdrawer()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done this way because multiple action bars could be opened simultaneously and since these are component states we can't know which ones we should close. To do that, we would need another state to store the active action menus.
Closes #7339
Enregistrement.de.l.ecran.2024-10-23.a.15.54.00.mov