diff --git a/site/src/pages/WorkspacePage/WorkspaceTopbar.tsx b/site/src/pages/WorkspacePage/WorkspaceTopbar.tsx index 23cfba1d9a66a..189ef65a7b445 100644 --- a/site/src/pages/WorkspacePage/WorkspaceTopbar.tsx +++ b/site/src/pages/WorkspacePage/WorkspaceTopbar.tsx @@ -106,6 +106,10 @@ export const WorkspaceTopbar: FC = ({ allowAdvancedScheduling, ); + const isImmutable = + workspace.latest_build.status === "deleted" || + workspace.latest_build.status === "deleting"; + return ( @@ -196,11 +200,13 @@ export const WorkspaceTopbar: FC = ({ - + {!isImmutable && ( + + )} {shouldDisplayDormantData && ( @@ -247,36 +253,40 @@ export const WorkspaceTopbar: FC = ({ gap: 12, }} > - - - + {!isImmutable && ( + <> + + + + + )} );