add UI support for -1 as Unlimited retry

This commit is contained in:
Alex Ullrich 2023-01-04 12:56:00 -05:00
parent 5c48e4e31d
commit d68b8ea77c
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ function Row(props: RowProps) {
</SyntaxHighlighter>
</TableCell>
<TableCell align="right">{task.retried}</TableCell>
<TableCell align="right">{task.max_retry}</TableCell>
<TableCell align="right">{task.max_retry == -1 ? "unlimited" : task.max_retry}</TableCell>
{!window.READ_ONLY && (
<TableCell
align="center"

View File

@ -130,7 +130,7 @@ function Row(props: RowProps) {
<TableCell>{durationBefore(task.next_process_at)}</TableCell>
<TableCell>{task.error_message}</TableCell>
<TableCell align="right">{task.retried}</TableCell>
<TableCell align="right">{task.max_retry}</TableCell>
<TableCell align="right">{task.max_retry == -1 ? "unlimited" : task.max_retry}</TableCell>
{!window.READ_ONLY && (
<TableCell
align="center"

View File

@ -160,7 +160,7 @@ function TaskDetailsView(props: Props) {
Retry:{" "}
</Typography>
<Typography className={classes.infoValueCell}>
{taskInfo?.retried}/{taskInfo?.max_retry}
{taskInfo?.retried}/{taskInfo?.max_retry == -1 ? "unlimited" : taskInfo?.max_retry}
</Typography>
</div>
<div className={classes.infoRow}>