Command menu actions fixes (#9169)

- Fix command menu not closing after executing an action
- Add delete and favorite actions to workflow and workflow versions
This commit is contained in:
Raphaël Bosi
2024-12-20 14:42:01 +01:00
committed by GitHub
parent f65a90d137
commit d08075f610
31 changed files with 269 additions and 55 deletions

View File

@ -2,8 +2,8 @@ import { createContext } from 'react';
type ActionMenuContextType = {
isInRightDrawer: boolean;
onActionStartedCallback?: (action: { key: string }) => void;
onActionExecutedCallback?: (action: { key: string }) => void;
onActionStartedCallback?: (action: { key: string }) => Promise<void> | void;
onActionExecutedCallback?: (action: { key: string }) => Promise<void> | void;
};
export const ActionMenuContext = createContext<ActionMenuContextType>({