diff --git a/apps/dashboard/src/App.tsx b/apps/dashboard/src/App.tsx index e12b8bc..4cda49b 100644 --- a/apps/dashboard/src/App.tsx +++ b/apps/dashboard/src/App.tsx @@ -597,12 +597,36 @@ function SystemTile({ ) } + let systemStatusContent: React.ReactNode + switch (beszelSystemsData.status) { + case "up": + systemStatusContent = ( +
+ +
+ ) + break + + case "down": + systemStatusContent = ( +
+

System offline

+
+ ) + break + } + return (

{displayName}

-
+

CPU

@@ -617,9 +641,7 @@ function SystemTile({

{beszelSystemsData.info.disk.toFixed(0).padStart(3, "0")}

-
- -
+ {systemStatusContent} ) } diff --git a/apps/dashboard/src/beszel.ts b/apps/dashboard/src/beszel.ts index a3fdc41..7e75d9b 100644 --- a/apps/dashboard/src/beszel.ts +++ b/apps/dashboard/src/beszel.ts @@ -16,6 +16,7 @@ const API_BASE_URL = getApiBaseUrl() // System Info export interface BeszelSystemInfo { name: string + status: "up" | "down" info: { cpu: number ram: number