From 784fe58c3e132ab85b0f6db79de11eca85fb0c3a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 12 Oct 2024 16:44:02 +0200 Subject: [PATCH] Display a message if no OTA update have been uploaded --- central_frontend/src/routes/OTARoute.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/central_frontend/src/routes/OTARoute.tsx b/central_frontend/src/routes/OTARoute.tsx index 8d366ba..e83d942 100644 --- a/central_frontend/src/routes/OTARoute.tsx +++ b/central_frontend/src/routes/OTARoute.tsx @@ -14,6 +14,7 @@ import { TableHead, TableRow, Tooltip, + Typography, } from "@mui/material"; import { filesize } from "filesize"; import React from "react"; @@ -141,6 +142,14 @@ function _OTAList(p: { } }; + if (p.list.length === 0) { + return ( + + There is no OTA update uploaded on the platform yet. + + ); + } + return ( <> {deployUpdate && ( @@ -150,7 +159,7 @@ function _OTAList(p: { /> )} - +
Platform