Disable rerun when v2 task is used (#1657)
This commit is contained in:
@@ -126,6 +126,8 @@ function WorkflowRun() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isTaskv2Run = workflowRun && workflowRun.observer_task !== null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-8">
|
<div className="space-y-8">
|
||||||
<header className="flex justify-between">
|
<header className="flex justify-between">
|
||||||
@@ -211,7 +213,7 @@ function WorkflowRun() {
|
|||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
)}
|
)}
|
||||||
{workflowRunIsFinalized && (
|
{workflowRunIsFinalized && !isTaskv2Run && (
|
||||||
<Button asChild>
|
<Button asChild>
|
||||||
<Link
|
<Link
|
||||||
to={`/workflows/${workflowPermanentId}/run`}
|
to={`/workflows/${workflowPermanentId}/run`}
|
||||||
|
|||||||
Reference in New Issue
Block a user