Add a button to refresh the list of updates
This commit is contained in:
parent
138dd6c6b8
commit
e4da44b5ce
@ -1,6 +1,7 @@
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import DownloadIcon from "@mui/icons-material/Download";
|
||||
import FileUploadIcon from "@mui/icons-material/FileUpload";
|
||||
import RefreshIcon from "@mui/icons-material/Refresh";
|
||||
import {
|
||||
IconButton,
|
||||
Paper,
|
||||
@ -65,13 +66,18 @@ function _OTARoute(p: { platforms: Array<string> }): React.ReactElement {
|
||||
<SolarEnergyRouteContainer
|
||||
label="OTA"
|
||||
actions={
|
||||
<>
|
||||
<span>
|
||||
<Tooltip title="Refresh the list of updates">
|
||||
<IconButton onClick={reload}>
|
||||
<RefreshIcon />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
<Tooltip title="Upload a new update">
|
||||
<IconButton onClick={() => setShowUploadDialog(true)}>
|
||||
<FileUploadIcon />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</>
|
||||
</span>
|
||||
}
|
||||
>
|
||||
{showUploadDialog && (
|
||||
|
Loading…
Reference in New Issue
Block a user