Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: remove next run from jobs that don't have next run #86486

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export class JobDetails extends React.Component<JobDetailsProps> {

renderContent = (): React.ReactElement => {
const job = this.props.job;
const nextRun = TimestampToMoment(job.next_run);
const hasNextRun = nextRun.isAfter();
return (
<>
<Row gutter={24}>
Expand All @@ -88,10 +90,14 @@ export class JobDetails extends React.Component<JobDetailsProps> {
<SummaryCard>
<h3 className={jobCx("summary--card--title")}>Status</h3>
<JobStatusCell job={job} lineWidth={1.5} hideDuration={true} />
<h3 className={jobCx("summary--card--title", "secondary")}>
Next Planned Execution Time:
</h3>
{TimestampToMoment(job.next_run).format(DATE_FORMAT_24_UTC)}
{hasNextRun && (
<>
<h3 className={jobCx("summary--card--title", "secondary")}>
Next Planned Execution Time:
</h3>
{nextRun.format(DATE_FORMAT_24_UTC)}
</>
)}
</SummaryCard>
</Col>
<Col className="gutter-row" span={12}>
Expand Down