From d19433b0b50ea845c0eaaaf2d467cd8b5e78f299 Mon Sep 17 00:00:00 2001 From: Ashton Galloway Date: Tue, 9 Jan 2024 14:54:32 -0500 Subject: [PATCH] fix: break out stopping... states from stopped states in webui This fixes an issue where experiments that were stopping for one reason or another showed as stopped. --- webui/react/src/components/ExperimentIcons.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webui/react/src/components/ExperimentIcons.tsx b/webui/react/src/components/ExperimentIcons.tsx index 65b2925a409..cd03cf452c2 100644 --- a/webui/react/src/components/ExperimentIcons.tsx +++ b/webui/react/src/components/ExperimentIcons.tsx @@ -44,7 +44,12 @@ const ExperimentIcons: React.FC = ({ case RunState.Unspecified: case JobState.UNSPECIFIED: return { name: 'active', title: stateToLabel(state) }; - default: + case RunState.StoppingCanceled: + case RunState.StoppingCompleted: + case RunState.StoppingError: + case RunState.StoppingKilled: + return { color: 'cancel', name: 'spin-shadow', title: stateToLabel(state) }; + case RunState.Canceled: return { color: 'cancel', name: 'cancelled', title: 'Stopped' }; } }, [backgroundColor, opacity, state]);