Skip to content

Commit

Permalink
update frontend (not recompiled yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
idocx committed May 5, 2024
1 parent a7cf24a commit 3d5834e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/dashboard/components/Experiments.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ function Row({ experiment_id, hoverForId }) {
return "inherit";
case "CANCELLED":
return "gray";
case "CANCELLING":
return "gray";
default:
return "inherit";
}
Expand Down Expand Up @@ -276,7 +274,7 @@ function Row({ experiment_id, hoverForId }) {
<Button
variant="outlined"
color="error"
disabled={task.status === "COMPLETED" || task.status === "CANCELLED" || task.status === "CANCELLING" || task.status === "ERROR"}
disabled={task.status !== "RUNNING" && task.status !== "REQUESTING_RESOURCES"}
onClick={() => handleCancel(task.id, "task")}
>
Cancel
Expand Down

0 comments on commit 3d5834e

Please sign in to comment.