Fix Docker host row dimming for degraded status
Docker hosts with 'degraded' status were incorrectly appearing dimmed (opacity-60) in the summary table, making them visually identical to offline hosts. This was confusing because degraded hosts are still actively reporting - they just have unhealthy containers or >35% of containers not running. The isHostOnline function now treats 'degraded' as an online status, so these rows maintain full opacity. The status badge already provides visual indication of the degraded state.
This commit is contained in:
parent
586ab3a740
commit
2c3768341a
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ type SortDirection = 'asc' | 'desc';
|
|||
|
||||
const isHostOnline = (host: DockerHost) => {
|
||||
const status = host.status?.toLowerCase() ?? '';
|
||||
return status === 'online' || status === 'running' || status === 'healthy';
|
||||
return status === 'online' || status === 'running' || status === 'healthy' || status === 'degraded';
|
||||
};
|
||||
|
||||
const getDisplayName = (host: DockerHost) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue