feat: load based on run status queued and running
This commit is contained in:
@@ -134,13 +134,13 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
|||||||
}}>
|
}}>
|
||||||
<div>
|
<div>
|
||||||
<Highlight className="javascript">
|
<Highlight className="javascript">
|
||||||
{interpretationInProgress ? currentLog : row.log}
|
{row.status === 'running' ? currentLog : row.log}
|
||||||
</Highlight>
|
</Highlight>
|
||||||
<div style={{ float: "left", clear: "both" }}
|
<div style={{ float: "left", clear: "both" }}
|
||||||
ref={logEndRef} />
|
ref={logEndRef} />
|
||||||
</div>
|
</div>
|
||||||
</Box>
|
</Box>
|
||||||
{interpretationInProgress ? <Button
|
{row.status === 'running' ? <Button
|
||||||
color="error"
|
color="error"
|
||||||
onClick={abortRunHandler}
|
onClick={abortRunHandler}
|
||||||
>
|
>
|
||||||
@@ -148,7 +148,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
|||||||
</Button> : null}
|
</Button> : null}
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel value='output' sx={{ width: '700px' }}>
|
<TabPanel value='output' sx={{ width: '700px' }}>
|
||||||
{interpretationInProgress ? (
|
{row.status === 'running' || row.status === 'queued' ? (
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||||
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
|
<CircularProgress size={22} sx={{ marginRight: '10px' }} />
|
||||||
{t('run_content.loading')}
|
{t('run_content.loading')}
|
||||||
@@ -248,4 +248,4 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
|
|||||||
</TabContext>
|
</TabContext>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user