diff --git a/site/src/components/Resources/Resources.tsx b/site/src/components/Resources/Resources.tsx index 7944323eb4738..a32a2d082a6ef 100644 --- a/site/src/components/Resources/Resources.tsx +++ b/site/src/components/Resources/Resources.tsx @@ -21,7 +21,6 @@ const Language = { resourceLabel: "Resource", agentsLabel: "Agents", agentLabel: "Agent", - statusLabel: "Status", accessLabel: "Access", } @@ -57,7 +56,6 @@ export const Resources: FC = ({ resources, getResourcesError, wo {canUpdateWorkspace && {Language.accessLabel}} - {Language.statusLabel} @@ -82,6 +80,7 @@ export const Resources: FC = ({ resources, getResourcesError, wo ) } + const agentStatus = getDisplayAgentStatus(theme, agent) return ( {/* We only want to display the name in the first row because we are using rowSpan */} @@ -96,6 +95,7 @@ export const Resources: FC = ({ resources, getResourcesError, wo {agent.name} {agent.operating_system} + {agentStatus.status} {canUpdateWorkspace && ( @@ -121,11 +121,6 @@ export const Resources: FC = ({ resources, getResourcesError, wo )} - - - {getDisplayAgentStatus(theme, agent).status} - - ) })