From 3db65686ece0d8d1e97ba5d9eb853f4886c73c72 Mon Sep 17 00:00:00 2001 From: Jeandre van Zyl <62015001+Jevz@users.noreply.github.com> Date: Mon, 5 Sep 2022 18:32:49 +0200 Subject: [PATCH] [5.x] Failed job list: Modify job retry tooltip label to include status of last job retry (#1182) * [5.x] Failed jobs list: Modify job retried tooltip label to include status of last retry * [5.x] Failed jobs list: Modify job retried tooltip label to include status of last retry - Simplified logic by removing unnecessary checks, since when method is called there will always have been a retry * [5.x] Failed jobs list: Modify job retried tooltip label to include status of last retry - Updated comment * Update index.vue * Update index.vue Co-authored-by: Jeandre van Zyl Co-authored-by: Taylor Otwell --- resources/js/screens/failedJobs/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/js/screens/failedJobs/index.vue b/resources/js/screens/failedJobs/index.vue index 0a617738..70a94bfb 100644 --- a/resources/js/screens/failedJobs/index.vue +++ b/resources/js/screens/failedJobs/index.vue @@ -151,6 +151,14 @@ return job.payload.retry_of; }, + /** + * Construct the tooltip label for a retried job. + */ + retriedJobTooltip(job) { + let lastRetry = job.retried_by[job.retried_by.length - 1]; + + return `Total retries: ${job.retried_by.length}, Last retry status: ${_.upperFirst(lastRetry.status)}`; + }, /** * Refresh the jobs every period of time. @@ -240,7 +248,7 @@ Retried