The 'ResourcesPanel ' class should only use the method 'onJobStatusChanged(JobStatus newStatus)' for display purpose. All code related to 'next job' should only be in the controller class. Then, we could use the job id to check the provenance of the JobStatus.DONE and avoid the confusion between the 2 states.
The 'ResourcesPanel ' class should only use the method 'onJobStatusChanged(JobStatus newStatus)' for display purpose. All code related to 'next job' should only be in the controller class. Then, we could use the job id to check the provenance of the JobStatus.DONE and avoid the confusion between the 2 states.