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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy