Display a message if no OTA update have been uploaded
This commit is contained in:
		@@ -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 (
 | 
			
		||||
      <Typography>
 | 
			
		||||
        There is no OTA update uploaded on the platform yet.
 | 
			
		||||
      </Typography>
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <>
 | 
			
		||||
      {deployUpdate && (
 | 
			
		||||
@@ -150,7 +159,7 @@ function _OTAList(p: {
 | 
			
		||||
        />
 | 
			
		||||
      )}
 | 
			
		||||
      <TableContainer component={Paper}>
 | 
			
		||||
        <Table sx={{ minWidth: 650 }} aria-label="simple table">
 | 
			
		||||
        <Table sx={{ minWidth: 650 }} aria-label="list of updates">
 | 
			
		||||
          <TableHead>
 | 
			
		||||
            <TableRow>
 | 
			
		||||
              <TableCell align="center">Platform</TableCell>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user