diff --git a/pkg/ui/workspaces/cluster-ui/src/jobs/jobDetailsPage/jobDetails.tsx b/pkg/ui/workspaces/cluster-ui/src/jobs/jobDetailsPage/jobDetails.tsx index 74a0eca0be2a..56eb884f2e36 100644 --- a/pkg/ui/workspaces/cluster-ui/src/jobs/jobDetailsPage/jobDetails.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/jobs/jobDetailsPage/jobDetails.tsx @@ -76,6 +76,8 @@ export class JobDetails extends React.Component { renderContent = (): React.ReactElement => { const job = this.props.job; + const nextRun = TimestampToMoment(job.next_run); + const hasNextRun = nextRun.isAfter(); return ( <> @@ -88,10 +90,14 @@ export class JobDetails extends React.Component {

Status

-

- Next Planned Execution Time: -

- {TimestampToMoment(job.next_run).format(DATE_FORMAT_24_UTC)} + {hasNextRun && ( + <> +

+ Next Planned Execution Time: +

+ {nextRun.format(DATE_FORMAT_24_UTC)} + + )}