From 133316f743c634de9b90401f0807f50f97a24257 Mon Sep 17 00:00:00 2001 From: Emin Cavalic Date: Mon, 11 Mar 2024 05:06:43 -0600 Subject: [PATCH] show message under run time if delay has been changed (#688) --- packages/ui/src/components/JobCard/Timeline/Timeline.tsx | 3 ++- packages/ui/src/static/locales/en-US/messages.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/JobCard/Timeline/Timeline.tsx b/packages/ui/src/components/JobCard/Timeline/Timeline.tsx index 2320c87b..d8bd43b1 100644 --- a/packages/ui/src/components/JobCard/Timeline/Timeline.tsx +++ b/packages/ui/src/components/JobCard/Timeline/Timeline.tsx @@ -67,7 +67,8 @@ export const Timeline = function Timeline({ job, status }: { job: AppJob; status {!!job.delay && job.delay > 0 && status === STATUSES.delayed && (
  • {t('JOB.WILL_RUN_AT')} - + + {job.delay !== job.opts.delay && {t('JOB.DELAY_CHANGED')} }
  • )} {!!job.processedOn && ( diff --git a/packages/ui/src/static/locales/en-US/messages.json b/packages/ui/src/static/locales/en-US/messages.json index bb085e0a..cb6e4fd4 100644 --- a/packages/ui/src/static/locales/en-US/messages.json +++ b/packages/ui/src/static/locales/en-US/messages.json @@ -10,6 +10,7 @@ "JOBS_COUNT": "{{count}} Jobs" }, "JOB": { + "DELAY_CHANGED": "*Delay changed; the new run time is currently unknown", "NOT_FOUND": "Job Not found", "STATUS": "Status: {{status}}", "ADDED_AT": "Added at",