Skip to content

Commit

Permalink
Merge #104981
Browse files Browse the repository at this point in the history
104981: ui: fix job details refresh when executing job r=gtr a=gtr

Fixes: #103206

Previously, when a job was still executing, the job details page for that job would keep refreshing and the loading animation would interrupt the page, causing flickers. This commit fixes this bug to only show the loading animation when the `jobRequest` does not have data to show.

Loom: https://www.loom.com/share/498f5cfd236e4bb6aeaf9f27e9e5409b.

Release note (ui change): fix bug where the job details page would flicker between the job details and a loading animation when a job is still executing.

Co-authored-by: gtr <[email protected]>
  • Loading branch information
craig[bot] and gtr committed Jun 15, 2023
2 parents 3e8657a + feca697 commit 26fdd4e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ export class JobDetails extends React.Component<
};

render(): React.ReactElement {
const isLoading = this.props.jobRequest.inFlight;
const isLoading =
this.props.jobRequest.inFlight && !this.props.jobRequest.data;
const error = this.props.jobRequest.error;
const job = this.props.jobRequest.data;
const nextRun = TimestampToMoment(job?.next_run);
Expand Down

0 comments on commit 26fdd4e

Please sign in to comment.