enable cancel mid-flight in an HTTPS firmware upload

This commit is contained in:
proddy
2026-06-06 16:35:40 +02:00
parent b1bc8110cc
commit 791285e7f4
3 changed files with 36 additions and 4 deletions

View File

@@ -145,9 +145,21 @@ const SystemMonitor = () => {
{LL.PLEASE_WAIT()}…
</Typography>
{isUploading && (
<Box sx={{ width: '100%', pl: 2, pr: 2, py: 2 }}>
<LinearProgressWithLabel value={progressValue} />
</Box>
<>
<Box sx={{ width: '100%', pl: 2, pr: 2, py: 2 }}>
<LinearProgressWithLabel value={progressValue} />
</Box>
<Button
sx={{ ml: 2, mt: 2 }}
startIcon={<CancelIcon />}
variant="outlined"
color="secondary"
onClick={onCancel}
>
{LL.CANCEL()}
</Button>
</>
)}
</>
)}