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 59e284c3..482f65e7 100644 --- a/internal/site/src/components/systems-table/systems-table-columns.tsx +++ b/internal/site/src/components/systems-table/systems-table-columns.tsx @@ -184,7 +184,8 @@ export function SystemsTableColumns(viewMode: "table" | "grid"): ColumnDef info.dp || undefined, id: "disk", name: () => t`Disk`, - cell: DiskCellWithMultiple, + cell: (info: CellContext) => + info.row.original.info.efs ? DiskCellWithMultiple(info) : TableCellWithMeter(info), Icon: HardDriveIcon, header: sortableHeader, }, @@ -479,11 +480,6 @@ function DiskCellWithMultiple(info: CellContext) { const { colorWarn = 65, colorCrit = 90 } = useStore($userSettings, { keys: ["colorWarn", "colorCrit"] }) const { info: sysInfo, status, id } = info.row.original const extraFs = Object.entries(sysInfo.efs ?? {}) - - if (extraFs.length === 0) { - return TableCellWithMeter(info) - } - const rootDiskPct = sysInfo.dp // sort extra disks by percentage descending