@@ -21,7 +21,6 @@ const Language = {
21
21
resourceLabel : "Resource" ,
22
22
agentsLabel : "Agents" ,
23
23
agentLabel : "Agent" ,
24
- statusLabel : "Status" ,
25
24
accessLabel : "Access" ,
26
25
}
27
26
@@ -57,7 +56,6 @@ export const Resources: FC<ResourcesProps> = ({ resources, getResourcesError, wo
57
56
</ Stack >
58
57
</ TableCell >
59
58
{ canUpdateWorkspace && < TableCell > { Language . accessLabel } </ TableCell > }
60
- < TableCell > { Language . statusLabel } </ TableCell >
61
59
</ TableHeaderRow >
62
60
</ TableHead >
63
61
< TableBody >
@@ -82,6 +80,7 @@ export const Resources: FC<ResourcesProps> = ({ resources, getResourcesError, wo
82
80
)
83
81
}
84
82
83
+ const agentStatus = getDisplayAgentStatus ( theme , agent )
85
84
return (
86
85
< TableRow key = { `${ resource . id } -${ agent . id } ` } >
87
86
{ /* We only want to display the name in the first row because we are using rowSpan */ }
@@ -90,12 +89,16 @@ export const Resources: FC<ResourcesProps> = ({ resources, getResourcesError, wo
90
89
< TableCell className = { styles . resourceNameCell } rowSpan = { agents . length } >
91
90
{ resource . name }
92
91
< span className = { styles . resourceType } > { resource . type } </ span >
92
+
93
93
</ TableCell >
94
94
) }
95
95
96
96
< TableCell className = { styles . agentColumn } >
97
97
{ agent . name }
98
98
< span className = { styles . operatingSystem } > { agent . operating_system } </ span >
99
+ < span style = { { color : agentStatus . color } } >
100
+ { agentStatus . status }
101
+ </ span >
99
102
</ TableCell >
100
103
{ canUpdateWorkspace && (
101
104
< TableCell >
@@ -121,11 +124,6 @@ export const Resources: FC<ResourcesProps> = ({ resources, getResourcesError, wo
121
124
</ Stack >
122
125
</ TableCell >
123
126
) }
124
- < TableCell >
125
- < span style = { { color : getDisplayAgentStatus ( theme , agent ) . color } } >
126
- { getDisplayAgentStatus ( theme , agent ) . status }
127
- </ span >
128
- </ TableCell >
129
127
</ TableRow >
130
128
)
131
129
} )
0 commit comments