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

View File

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

View File

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