Добавил доп информацию

jwt
Rinsvent 2 years ago
parent 4cb539d58a
commit 5f59bbe18f
  1. 8
      components/elements/processes/index.tsx

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

Loading…
Cancel
Save