Display a message if no OTA update have been uploaded
This commit is contained in:
parent
5857892a4b
commit
784fe58c3e
@ -14,6 +14,7 @@ import {
|
|||||||
TableHead,
|
TableHead,
|
||||||
TableRow,
|
TableRow,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
|
Typography,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import { filesize } from "filesize";
|
import { filesize } from "filesize";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
@ -141,6 +142,14 @@ function _OTAList(p: {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (p.list.length === 0) {
|
||||||
|
return (
|
||||||
|
<Typography>
|
||||||
|
There is no OTA update uploaded on the platform yet.
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{deployUpdate && (
|
{deployUpdate && (
|
||||||
@ -150,7 +159,7 @@ function _OTAList(p: {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<TableContainer component={Paper}>
|
<TableContainer component={Paper}>
|
||||||
<Table sx={{ minWidth: 650 }} aria-label="simple table">
|
<Table sx={{ minWidth: 650 }} aria-label="list of updates">
|
||||||
<TableHead>
|
<TableHead>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableCell align="center">Platform</TableCell>
|
<TableCell align="center">Platform</TableCell>
|
||||||
|
Loading…
Reference in New Issue
Block a user