make view button open menu

This commit is contained in:
Lucas Oliveira 2025-10-03 17:06:07 -03:00
parent 946d3edc89
commit 509b6c6132

View file

@ -220,7 +220,7 @@ export function TaskProvider({ children }: { children: React.ReactNode }) {
description, description,
action: { action: {
label: "View", label: "View",
onClick: () => console.log("View task", currentTask.task_id), onClick: () => setIsMenuOpen(true),
}, },
}); });
setTimeout(() => { setTimeout(() => {
@ -252,7 +252,9 @@ export function TaskProvider({ children }: { children: React.ReactNode }) {
(_taskId: string) => { (_taskId: string) => {
// React Query will automatically handle polling when tasks are active // React Query will automatically handle polling when tasks are active
// Just trigger a refetch to get the latest data // Just trigger a refetch to get the latest data
refetchTasks(); setTimeout(() => {
refetchTasks();
}, 500);
}, },
[refetchTasks], [refetchTasks],
); );