fix: add stop abort option
This commit is contained in:
@@ -617,10 +617,15 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
|||||||
<TabContext value={tab}>
|
<TabContext value={tab}>
|
||||||
<TabPanel value='output' sx={{ width: '100%', maxWidth: '900px' }}>
|
<TabPanel value='output' sx={{ width: '100%', maxWidth: '900px' }}>
|
||||||
{row.status === 'running' || row.status === 'queued' ? (
|
{row.status === 'running' || row.status === 'queued' ? (
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
<>
|
||||||
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
|
<Box sx={{ display: 'flex', alignItems: 'center', mb: 2 }}>
|
||||||
{t('run_content.loading')}
|
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
|
||||||
</Box>
|
{t('run_content.loading')}
|
||||||
|
</Box>
|
||||||
|
<Button color="error" onClick={abortRunHandler} sx={{ mt: 1 }}>
|
||||||
|
{t('run_content.buttons.stop')}
|
||||||
|
</Button>
|
||||||
|
</>
|
||||||
) : (!hasData && !hasScreenshots
|
) : (!hasData && !hasScreenshots
|
||||||
? <Typography>{t('run_content.empty_output')}</Typography>
|
? <Typography>{t('run_content.empty_output')}</Typography>
|
||||||
: null)}
|
: null)}
|
||||||
|
|||||||
Reference in New Issue
Block a user