From 45c7be3d501ad2e6d27d8207c53799eb64b2a953 Mon Sep 17 00:00:00 2001 From: BennyKok Date: Fri, 19 Jan 2024 17:30:02 +0800 Subject: [PATCH] feat: update machine list ui --- web/src/components/MachineList.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/web/src/components/MachineList.tsx b/web/src/components/MachineList.tsx index 490a9e0..9f828b9 100644 --- a/web/src/components/MachineList.tsx +++ b/web/src/components/MachineList.tsx @@ -3,6 +3,7 @@ import { getRelativeTime } from "../lib/getRelativeTime"; import { InsertModal, UpdateModal } from "./InsertModal"; import { callServerPromise } from "./callServerPromise"; +import { LoadingIcon } from "@/components/LoadingIcon"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Checkbox } from "@/components/ui/checkbox"; @@ -107,8 +108,20 @@ export const columns: ColumnDef[] = [ {row.original.disabled && ( Disabled )} + {row.original.status == "building" && ( + + {row.original.status} + + )} {!row.original.disabled && row.original.status && ( - {row.original.status} + + {row.original.status} + )} //