feat(site): add restart button when workspace is unhealthy (#8765)
This commit is contained in:
1 parent
f54d385266
commit
e85b88ca90
1 file changed
+14
-1
@@ -220,7 +220,20 @@ export const Workspace: FC<React.PropsWithChildren<WorkspaceProps>> = ({
|
||||
{cancellationError}
|
||||
{workspace.latest_build.status === "running" &&
|
||||
!workspace.health.healthy && (
|
||||
<Alert severity="warning">
|
||||
<Alert
|
||||
severity="warning"
|
||||
actions={
|
||||
<Button
|
||||
variant="text"
|
||||
size="small"
|
||||
onClick={() => {
|
||||
handleRestart()
|
||||
}}
|
||||
>
|
||||
Restart
|
||||
</Button>
|
||||
}
|
||||
>
|
||||
<AlertTitle>Workspace is unhealthy</AlertTitle>
|
||||
<AlertDetail>
|
||||
Your workspace is running but{" "}
|
||||
|
||||
Reference in new issue
Block a user