Skip to content

Commit

Permalink
show message under run time if delay has been changed (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
emko authored Mar 11, 2024
1 parent a98367a commit 133316f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/src/components/JobCard/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export const Timeline = function Timeline({ job, status }: { job: AppJob; status
{!!job.delay && job.delay > 0 && status === STATUSES.delayed && (
<li>
<small>{t('JOB.WILL_RUN_AT')}</small>
<time>{formatDate((job.timestamp || 0) + job.delay, i18n.language)}</time>
<time>{formatDate((job.timestamp || 0) + job.opts.delay, i18n.language)}</time>
{job.delay !== job.opts.delay && <small>{t('JOB.DELAY_CHANGED')} </small>}
</li>
)}
{!!job.processedOn && (
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/static/locales/en-US/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 133316f

Please sign in to comment.