From d68b8ea77c81654ebb708b1f72892c6987414205 Mon Sep 17 00:00:00 2001 From: Alex Ullrich Date: Wed, 4 Jan 2023 12:56:00 -0500 Subject: [PATCH] add UI support for -1 as Unlimited retry --- ui/src/components/PendingTasksTable.tsx | 2 +- ui/src/components/RetryTasksTable.tsx | 2 +- ui/src/views/TaskDetailsView.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/PendingTasksTable.tsx b/ui/src/components/PendingTasksTable.tsx index a6dc657..47c4052 100644 --- a/ui/src/components/PendingTasksTable.tsx +++ b/ui/src/components/PendingTasksTable.tsx @@ -118,7 +118,7 @@ function Row(props: RowProps) { {task.retried} - {task.max_retry} + {task.max_retry == -1 ? "unlimited" : task.max_retry} {!window.READ_ONLY && ( {durationBefore(task.next_process_at)} {task.error_message} {task.retried} - {task.max_retry} + {task.max_retry == -1 ? "unlimited" : task.max_retry} {!window.READ_ONLY && ( - {taskInfo?.retried}/{taskInfo?.max_retry} + {taskInfo?.retried}/{taskInfo?.max_retry == -1 ? "unlimited" : taskInfo?.max_retry}