Skip to content

Commit 0438f3a

Browse files
committed
Add simple message for agentless resources
1 parent 91fe9f2 commit 0438f3a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

site/src/pages/WorkspacePage/Workspace.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,25 @@ export const Workspace: FC<WorkspaceProps> = ({
253253
onUpdateAgent={handleUpdate} // On updating the workspace the agent version is also updated
254254
/>
255255
))}
256+
257+
{(!selectedResource.agents ||
258+
selectedResource.agents?.length === 0) && (
259+
<div
260+
css={{
261+
display: "flex",
262+
justifyContent: "center",
263+
alignItems: "center",
264+
width: "100%",
265+
height: "100%",
266+
}}
267+
>
268+
<div>
269+
<h4 css={{ fontSize: 16, fontWeight: 500 }}>
270+
No agents are currently assigned to this resource.
271+
</h4>
272+
</div>
273+
</div>
274+
)}
256275
</section>
257276
)}
258277
</div>

0 commit comments

Comments
 (0)