Skip to content

Commit 5368103

Browse files
authored
Merge pull request #875 from getmaxun/add-abort
fix: stop option not available when robot is running
2 parents 791507f + ac6838e commit 5368103

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
@@ -642,10 +642,15 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
642642
<TabContext value={tab}>
643643
<TabPanel value='output' sx={{ width: '100%', maxWidth: '900px' }}>
644644
{row.status === 'running' || row.status === 'queued' ? (
645-
<Box sx={{ display: 'flex', alignItems: 'center' }}>
646-
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
647-
{t('run_content.loading')}
648-
</Box>
645+
<>
646+
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
647+
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
648+
{t('run_content.loading')}
649+
</Box>
650+
<Button color="error" onClick={abortRunHandler} sx={{ mt: 1 }}>
651+
{t('run_content.buttons.stop')}
652+
</Button>
653+
</>
649654
) : (!hasData && !hasScreenshots
650655
? <Typography>{t('run_content.empty_output')}</Typography>
651656
: null)}

0 commit comments

Comments
 (0)