Skip to content

Commit 9f90df1

Browse files
committed
Switches “replay” and “cancel” options in the list
1 parent f086626 commit 9f90df1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.bulkaction.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -340,25 +340,25 @@ export function CreateBulkActionInspector({
340340
}}
341341
>
342342
<RadioGroupItem
343-
id="action-replay"
343+
id="action-cancel"
344344
label={
345345
<span className="inline-flex items-center gap-1">
346-
<ArrowPathIcon className="mb-0.5 size-4 text-blue-400" /> Replay runs
346+
<XCircleIcon className="size-4 text-error" /> Cancel runs
347347
</span>
348348
}
349-
description="Replays all selected runs, regardless of current status."
350-
value={"replay"}
349+
description="Cancels all runs still in progress. Any finished runs won’t be canceled."
350+
value={"cancel"}
351351
variant="description"
352352
/>
353353
<RadioGroupItem
354-
id="action-cancel"
354+
id="action-replay"
355355
label={
356356
<span className="inline-flex items-center gap-1">
357-
<XCircleIcon className="mb-0.5 size-4 text-error" /> Cancel runs
357+
<ArrowPathIcon className="size-4 text-blue-400" /> Replay runs
358358
</span>
359359
}
360-
description="Cancels all runs still in progress. Any finished runs won’t be canceled."
361-
value={"cancel"}
360+
description="Replays all selected runs, regardless of current status."
361+
value={"replay"}
362362
variant="description"
363363
/>
364364
</RadioGroup>
@@ -466,8 +466,8 @@ function bulkActionModeFromString(value: string | undefined): BulkActionMode {
466466
}
467467

468468
function bulkActionActionFromString(value: string | undefined): BulkActionAction {
469-
if (!value) return "replay";
469+
if (!value) return "cancel";
470470
const parsed = BulkActionAction.safeParse(value);
471-
if (!parsed.success) return "replay";
471+
if (!parsed.success) return "cancel";
472472
return parsed.data;
473473
}

0 commit comments

Comments
 (0)