Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

fix(site): keep last known update count in systems table when host is down (#2559)

Sven van Ginkel5714643ff900
diff --git a/internal/site/src/components/systems-table/systems-table-columns.tsx b/internal/site/src/components/systems-table/systems-table-columns.tsx
index 94cfb6dd8..0454fa939 100644
--- a/internal/site/src/components/systems-table/systems-table-columns.tsx
+++ b/internal/site/src/components/systems-table/systems-table-columns.tsx
@@ -476,7 +476,7 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef<Syste
},
cell(info) {
const sys = info.row.original
- if (sys.status !== SystemStatus.Up || !sys.info.pu) {
+ if (!sys.info.pu) {
return null
}
const [total, security = 0] = sys.info.pu
@@ -487,6 +487,7 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef<Syste
[STATUS_COLORS[SystemStatus.Down]]: security > 0,
[STATUS_COLORS[SystemStatus.Pending]]: security === 0 && total > 0,
[STATUS_COLORS[SystemStatus.Up]]: total === 0,
+ [STATUS_COLORS[SystemStatus.Paused]]: sys.status !== SystemStatus.Up,
})}
/>
{total === 0 ? t`Up to date` : plural(total, { one: "# update", other: "# updates" })}