mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-29 21:07:54 +02:00
fix(ui): show grey agent version dot for paused systems
This commit is contained in:
@@ -524,10 +524,11 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef<Syste
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const system = info.row.original
|
const system = info.row.original
|
||||||
const color = {
|
let color = "text-red-500"
|
||||||
"text-green-500": version === globalThis.BESZEL.HUB_VERSION,
|
if (system.status === SystemStatus.Up) {
|
||||||
"text-yellow-500": version !== globalThis.BESZEL.HUB_VERSION,
|
color = version === globalThis.BESZEL.HUB_VERSION ? "text-green-500" : "text-yellow-500"
|
||||||
"text-red-500": system.status !== SystemStatus.Up,
|
} else if (system.status === SystemStatus.Paused) {
|
||||||
|
color = "text-primary/40"
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
|||||||
Reference in New Issue
Block a user