Skip to content

Commit 55081d5

Browse files
committed
Only show terminal link when agent is connected
1 parent 8878990 commit 55081d5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

site/src/components/Resources/Resources.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ export const Resources: React.FC<ResourcesProps> = ({ resources, getResourcesErr
8383
</span>
8484
</TableCell>
8585
<TableCell>
86-
<TerminalLink
87-
workspaceName={workspace.name}
88-
agentName={agent.name}
89-
userName={workspace.owner_name}
90-
/>
86+
{agent.status === "connected" && (
87+
<TerminalLink
88+
workspaceName={workspace.name}
89+
agentName={agent.name}
90+
userName={workspace.owner_name}
91+
/>
92+
)}
9193
</TableCell>
9294
</TableRow>
9395
)

0 commit comments

Comments
 (0)