minor change

This commit is contained in:
proddy
2025-01-22 22:29:58 +01:00
parent 872cd40f56
commit c3181f589c

View File

@@ -56,7 +56,7 @@ const SystemMonitor = () => {
useInterval(() => { useInterval(() => {
void send(); void send();
}, 1000); // check every second }, 1000); // check every 1 second
const onCancel = async () => { const onCancel = async () => {
setErrorMessage(undefined); setErrorMessage(undefined);
@@ -78,7 +78,7 @@ const SystemMonitor = () => {
> >
{data?.status >= SystemStatusCodes.SYSTEM_STATUS_UPLOADING {data?.status >= SystemStatusCodes.SYSTEM_STATUS_UPLOADING
? LL.WAIT_FIRMWARE() ? LL.WAIT_FIRMWARE()
: data?.status === SystemStatusCodes.SYSTEM_STATUS_RESTART_REQUESTED : data?.status === SystemStatusCodes.SYSTEM_STATUS_PENDING_RESTART
? LL.APPLICATION_RESTARTING() ? LL.APPLICATION_RESTARTING()
: data?.status === SystemStatusCodes.SYSTEM_STATUS_NORMAL : data?.status === SystemStatusCodes.SYSTEM_STATUS_NORMAL
? LL.RESTARTING_PRE() ? LL.RESTARTING_PRE()
@@ -105,7 +105,7 @@ const SystemMonitor = () => {
<Typography mt={2} variant="h6" fontWeight={400} textAlign="center"> <Typography mt={2} variant="h6" fontWeight={400} textAlign="center">
{LL.PLEASE_WAIT()}&hellip; {LL.PLEASE_WAIT()}&hellip;
</Typography> </Typography>
{data && data.status > SystemStatusCodes.SYSTEM_STATUS_UPLOADING && ( {data && data.status >= SystemStatusCodes.SYSTEM_STATUS_UPLOADING && (
<Box width="100%" pl={2} pr={2} py={2}> <Box width="100%" pl={2} pr={2} py={2}>
<LinearProgressWithLabel <LinearProgressWithLabel
value={Math.round( value={Math.round(