mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-29 04:47:46 +02:00
wifi: hide chart without signal data, show unknown signal in table
The line chart never renders without values, leaving an endless spinner when connected interfaces report no RSSI.
This commit is contained in:
@@ -708,9 +708,10 @@ function WiFiSignal({ wifi, className }: { wifi: WiFi; className?: ClassValue })
|
||||
[STATUS_COLORS[SystemStatus.Up]]: state === MeterState.Good,
|
||||
[STATUS_COLORS[SystemStatus.Pending]]: state === MeterState.Warn,
|
||||
[STATUS_COLORS[SystemStatus.Down]]: state === MeterState.Crit,
|
||||
[STATUS_COLORS[SystemStatus.Paused]]: state === undefined,
|
||||
})}
|
||||
/>
|
||||
{wifi.r === undefined ? "—" : `${wifi.r} dBm`}
|
||||
{wifi.r === undefined ? t`Unknown` : `${wifi.r} dBm`}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user