|
|
@ -281,16 +281,16 @@ export default function Processes() { |
|
|
|
</IconButton>} |
|
|
|
</IconButton>} |
|
|
|
</TableCell> |
|
|
|
</TableCell> |
|
|
|
<TableCell> |
|
|
|
<TableCell> |
|
|
|
{process.canUnlock && token?.permissions.indexOf('unlock_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Unlock)} title={`Unlock`} aria-label="Unlock"> |
|
|
|
{process.canUnlock && token && token?.permissions.indexOf('unlock_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Unlock)} title={`Unlock`} aria-label="Unlock"> |
|
|
|
<LockOpenOutlined/> |
|
|
|
<LockOpenOutlined/> |
|
|
|
</IconButton>} |
|
|
|
</IconButton>} |
|
|
|
{process.canApprove && token?.permissions.indexOf('approve_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Approve)} title={`Approve`} aria-label="Approve"> |
|
|
|
{process.canApprove && token && token?.permissions.indexOf('approve_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Approve)} title={`Approve`} aria-label="Approve"> |
|
|
|
<ThumbUpAltOutlined/> |
|
|
|
<ThumbUpAltOutlined/> |
|
|
|
</IconButton>} |
|
|
|
</IconButton>} |
|
|
|
{process.canRepeat && token?.permissions.indexOf('run_command') > -1 && <IconButton onClick={() => openDialog(process, Action.Repeat)} title={`Repeat`} aria-label="Repeat"> |
|
|
|
{process.canRepeat && token && token?.permissions.indexOf('run_command') > -1 && <IconButton onClick={() => openDialog(process, Action.Repeat)} title={`Repeat`} aria-label="Repeat"> |
|
|
|
<ReplayOutlined/> |
|
|
|
<ReplayOutlined/> |
|
|
|
</IconButton>} |
|
|
|
</IconButton>} |
|
|
|
{process.canKill && token?.permissions.indexOf('kill_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Kill)} title={`Kill`} aria-label="Kill"> |
|
|
|
{process.canKill && token && token?.permissions.indexOf('kill_process') > -1 && <IconButton onClick={() => openDialog(process, Action.Kill)} title={`Kill`} aria-label="Kill"> |
|
|
|
<DeleteForeverOutlined/> |
|
|
|
<DeleteForeverOutlined/> |
|
|
|
</IconButton>} |
|
|
|
</IconButton>} |
|
|
|
{process?.outputId && <IconButton title={`Output`} onClick={() => output(process)} aria-label="Output"> |
|
|
|
{process?.outputId && <IconButton title={`Output`} onClick={() => output(process)} aria-label="Output"> |
|
|
|