File tree 2 files changed +13
-4
lines changed
components/DeploySettingsLayout
pages/UserSettingsPage/WorkspaceProxyPage
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ export const EntitledBadge: FC = () => {
23
23
)
24
24
}
25
25
26
- export const HealthyBadge : FC = ( ) => {
26
+ export const HealthyBadge : FC < { derpOnly : boolean } > = ( { derpOnly } ) => {
27
27
const styles = useStyles ( )
28
+ let text = "Healthy"
29
+ if ( derpOnly ) {
30
+ text = "Healthy (DERP Only)"
31
+ }
28
32
return (
29
33
< span className = { combineClasses ( [ styles . badge , styles . enabledBadge ] ) } >
30
- Healthy
34
+ { text }
31
35
</ span >
32
36
)
33
37
}
Original file line number Diff line number Diff line change @@ -169,9 +169,14 @@ const DetailedProxyStatus: FC<{
169
169
return < ProxyStatus proxy = { proxy } />
170
170
}
171
171
172
+ let derpOnly = false
173
+ if ( "derp_only" in proxy ) {
174
+ derpOnly = proxy . derp_only
175
+ }
176
+
172
177
switch ( proxy . status . status ) {
173
178
case "ok" :
174
- return < HealthyBadge />
179
+ return < HealthyBadge derpOnly = { derpOnly } />
175
180
case "unhealthy" :
176
181
return < NotHealthyBadge />
177
182
case "unreachable" :
@@ -189,7 +194,7 @@ const ProxyStatus: FC<{
189
194
} > = ( { proxy } ) => {
190
195
let icon = < NotHealthyBadge />
191
196
if ( proxy . healthy ) {
192
- icon = < HealthyBadge />
197
+ icon = < HealthyBadge derpOnly = { false } />
193
198
}
194
199
195
200
return icon
You can’t perform that action at this time.
0 commit comments