mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-22 06:16:11 +08:00
Add cancel action to ActiveTasksTable
This commit is contained in:
@@ -70,7 +70,10 @@ export default function TableActions(props: Props) {
|
||||
{props.menuItemActions.map((action) => (
|
||||
<MenuItem
|
||||
key={action.label}
|
||||
onClick={action.onClick}
|
||||
onClick={() => {
|
||||
action.onClick();
|
||||
closeMenu();
|
||||
}}
|
||||
disabled={action.disabled}
|
||||
>
|
||||
{action.label}
|
||||
|
Reference in New Issue
Block a user