Skip to content

Commit ac6838e

Browse files
committed
fix: add stop abort option
1 parent eb8d829 commit ac6838e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/components/run/RunContent.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,15 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
617617
<TabContext value={tab}>
618618
<TabPanel value='output' sx={{ width: '100%', maxWidth: '900px' }}>
619619
{row.status === 'running' || row.status === 'queued' ? (
620-
<Box sx={{ display: 'flex', alignItems: 'center' }}>
621-
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
622-
{t('run_content.loading')}
623-
</Box>
620+
<>
621+
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
622+
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
623+
{t('run_content.loading')}
624+
</Box>
625+
<Button color="error" onClick={abortRunHandler} sx={{ mt: 1 }}>
626+
{t('run_content.buttons.stop')}
627+
</Button>
628+
</>
624629
) : (!hasData && !hasScreenshots
625630
? <Typography>{t('run_content.empty_output')}</Typography>
626631
: null)}

0 commit comments

Comments
 (0)