From 404de01f6343c0f1c431e3e604ec1635962a15fb Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Thu, 27 Jul 2023 11:58:23 +0000 Subject: [PATCH] feat(site): add restart button when workspace is unhealthy --- site/src/components/Workspace/Workspace.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/site/src/components/Workspace/Workspace.tsx b/site/src/components/Workspace/Workspace.tsx index bfa4d8bbb97d5..6b2f97848f29a 100644 --- a/site/src/components/Workspace/Workspace.tsx +++ b/site/src/components/Workspace/Workspace.tsx @@ -220,7 +220,20 @@ export const Workspace: FC> = ({ {cancellationError} {workspace.latest_build.status === "running" && !workspace.health.healthy && ( - + { + handleRestart() + }} + > + Restart + + } + > Workspace is unhealthy Your workspace is running but{" "}