Skip to content

Commit 4e69393

Browse files
committed
revert scoped connected status check
1 parent b10545e commit 4e69393

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

site/src/components/Resources/Resources.tsx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,24 +131,27 @@ export const Resources: FC<ResourcesProps> = ({ resources, getResourcesError, wo
131131
{agent.name}
132132
<span className={styles.operatingSystem}>{agent.operating_system}</span>
133133
</TableCell>
134-
{canUpdateWorkspace && agent.status === "connected" && (
134+
{canUpdateWorkspace && (
135135
<TableCell>
136136
<Stack>
137-
<TerminalLink
138-
className={styles.accessLink}
139-
workspaceName={workspace.name}
140-
agentName={agent.name}
141-
userName={workspace.owner_name}
142-
/>
143-
{agent.apps.map((app) => (
144-
<AppLink
145-
key={app.name}
146-
appIcon={app.icon}
147-
appName={app.name}
148-
userName={workspace.owner_name}
137+
{agent.status === "connected" && (
138+
<TerminalLink
139+
className={styles.accessLink}
149140
workspaceName={workspace.name}
141+
agentName={agent.name}
142+
userName={workspace.owner_name}
150143
/>
151-
))}
144+
)}
145+
{agent.status === "connected" &&
146+
agent.apps.map((app) => (
147+
<AppLink
148+
key={app.name}
149+
appIcon={app.icon}
150+
appName={app.name}
151+
userName={workspace.owner_name}
152+
workspaceName={workspace.name}
153+
/>
154+
))}
152155
</Stack>
153156
</TableCell>
154157
)}

0 commit comments

Comments
 (0)