|
|
|
@ -128,6 +128,10 @@ export default function Processes() { |
|
|
|
|
let isCancelled = (process: ProcessInterface) => process.cancelledAt |
|
|
|
|
let isRunning = (process: ProcessInterface) => process.startedAt && !isFinished(process) |
|
|
|
|
|
|
|
|
|
const processName = (process: ProcessInterface) => { |
|
|
|
|
return process.name + ' ' + JSON.stringify(process.options)+ ' ' + JSON.stringify(process.arguments) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleChangePage = (event: any, page: number) => { |
|
|
|
|
setPage(page); |
|
|
|
|
} |
|
|
|
@ -236,7 +240,7 @@ export default function Processes() { |
|
|
|
|
<TableBody> |
|
|
|
|
{processes.map((process: ProcessInterface, index: number) => ( |
|
|
|
|
<TableRow key={process.id}> |
|
|
|
|
<TableCell>{process.name}</TableCell> |
|
|
|
|
<TableCell title={processName(process)}>{process.name}</TableCell> |
|
|
|
|
<TableCell> |
|
|
|
|
{!process.progress && !isFinished(process) && isRunning(process) && <LinearProgress/>} |
|
|
|
|
{!process.progress && !isFinished(process) && !isRunning(process) && <LinearProgress variant="determinate" value={0}/>} |
|
|
|
@ -294,7 +298,7 @@ export default function Processes() { |
|
|
|
|
</IconButton>} |
|
|
|
|
</TableCell> |
|
|
|
|
<TableCell title={new Date(process.createdAt).toLocaleString()}> |
|
|
|
|
{new Date(process.createdAt).toLocaleDateString()} |
|
|
|
|
{new Date(process.createdAt).toLocaleString()} |
|
|
|
|
</TableCell> |
|
|
|
|
</TableRow> |
|
|
|
|
))} |
|
|
|
|