feat: pass params to abort run handler

This commit is contained in:
Rohit
2025-06-12 11:17:27 +05:30
parent 83280fbcf3
commit 9b9bc6dae7
3 changed files with 5 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ interface CollapsibleRowProps {
handleDelete: () => void; handleDelete: () => void;
isOpen: boolean; isOpen: boolean;
currentLog: string; currentLog: string;
abortRunHandler: () => void; abortRunHandler: (runId: string, robotName: string, browserId: string) => void;
runningRecordingName: string; runningRecordingName: string;
urlRunId: string | null; urlRunId: string | null;
} }
@@ -60,7 +60,7 @@ export const CollapsibleRow = ({ row, handleDelete, isOpen, currentLog, abortRun
} }
const handleAbort = () => { const handleAbort = () => {
abortRunHandler(); abortRunHandler(row.runId, row.name, row.browserId);
} }
useEffect(() => { useEffect(() => {

View File

@@ -4,7 +4,7 @@ import { RunsTable } from "./RunsTable";
interface RunsProps { interface RunsProps {
currentInterpretationLog: string; currentInterpretationLog: string;
abortRunHandler: () => void; abortRunHandler: (runId: string, robotName: string, browserId: string) => void;
runId: string; runId: string;
runningRecordingName: string; runningRecordingName: string;
} }

View File

@@ -53,6 +53,7 @@ export interface Data {
finishedAt: string; finishedAt: string;
runByUserId?: string; runByUserId?: string;
runByScheduleId?: string; runByScheduleId?: string;
browserId: string;
runByAPI?: boolean; runByAPI?: boolean;
log: string; log: string;
runId: string; runId: string;
@@ -65,7 +66,7 @@ export interface Data {
interface RunsTableProps { interface RunsTableProps {
currentInterpretationLog: string; currentInterpretationLog: string;
abortRunHandler: () => void; abortRunHandler: (runId: string, robotName: string, browserId: string) => void;
runId: string; runId: string;
runningRecordingName: string; runningRecordingName: string;
} }