feat: pass params for abort handler

This commit is contained in:
amhsirak
2025-06-06 00:46:26 +05:30
parent 326dcc8fa3
commit b286101575
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;
}