Fix router not going back to tasks page from task details (#437)
This commit is contained in:
@@ -34,10 +34,6 @@ const router = createBrowserRouter([
|
|||||||
path: ":taskId",
|
path: ":taskId",
|
||||||
element: <TaskDetails />,
|
element: <TaskDetails />,
|
||||||
children: [
|
children: [
|
||||||
{
|
|
||||||
index: true,
|
|
||||||
element: <Navigate to="actions" />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "actions",
|
path: "actions",
|
||||||
element: <TaskActions />,
|
element: <TaskActions />,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ function TaskHistory() {
|
|||||||
<TableCell
|
<TableCell
|
||||||
className="w-1/4 cursor-pointer"
|
className="w-1/4 cursor-pointer"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(task.task_id);
|
navigate(`${task.task_id}/actions`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{task.task_id}
|
{task.task_id}
|
||||||
@@ -95,7 +95,7 @@ function TaskHistory() {
|
|||||||
<TableCell
|
<TableCell
|
||||||
className="w-1/4 cursor-pointer max-w-64 overflow-hidden whitespace-nowrap overflow-ellipsis"
|
className="w-1/4 cursor-pointer max-w-64 overflow-hidden whitespace-nowrap overflow-ellipsis"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(task.task_id);
|
navigate(`${task.task_id}/actions`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{task.request.url}
|
{task.request.url}
|
||||||
@@ -103,7 +103,7 @@ function TaskHistory() {
|
|||||||
<TableCell
|
<TableCell
|
||||||
className="w-1/6 cursor-pointer"
|
className="w-1/6 cursor-pointer"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(task.task_id);
|
navigate(`${task.task_id}/actions`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<StatusBadge status={task.status} />
|
<StatusBadge status={task.status} />
|
||||||
@@ -111,7 +111,7 @@ function TaskHistory() {
|
|||||||
<TableCell
|
<TableCell
|
||||||
className="w-1/4 cursor-pointer"
|
className="w-1/4 cursor-pointer"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(task.task_id);
|
navigate(`${task.task_id}/actions`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{basicTimeFormat(task.created_at)}
|
{basicTimeFormat(task.created_at)}
|
||||||
|
|||||||
Reference in New Issue
Block a user