Merge pull request #3264 from kialam/status-service-on-success

Call `this.sync` when we receive a ws complete message.

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-02-21 21:16:33 +00:00 committed by GitHub
commit c1698fff8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -810,7 +810,6 @@ function OutputIndexController (
onStop () {
lockFollow = true;
stopFollowing();
stopListening();
status.updateStats();
status.dispatch();
status.sync();

View File

@ -95,6 +95,9 @@ function JobStatusService (moment, message) {
if (isJobStatusEvent) {
this.setJobStatus(data.status);
if (JOB_STATUS_FINISHED.includes(data.status)) {
this.sync();
}
this.dispatch();
} else if (isProjectStatusEvent) {
this.setProjectStatus(data.status);