mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Fix bug where output was not loading after job finished and cancel button was shown instead of delete
This commit is contained in:
@@ -319,8 +319,8 @@ function JobOutput({
|
|||||||
if (data.final_counter) {
|
if (data.final_counter) {
|
||||||
jobSocketCounter.current = data.final_counter;
|
jobSocketCounter.current = data.final_counter;
|
||||||
}
|
}
|
||||||
if (job.status) {
|
if (data.status) {
|
||||||
setJobStatus(job.status);
|
setJobStatus(data.status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -393,7 +393,10 @@ function JobOutput({
|
|||||||
} = useDismissableError(deleteError);
|
} = useDismissableError(deleteError);
|
||||||
|
|
||||||
const monitorJobSocketCounter = () => {
|
const monitorJobSocketCounter = () => {
|
||||||
if (jobSocketCounter.current === remoteRowCount) {
|
if (
|
||||||
|
jobSocketCounter.current === remoteRowCount &&
|
||||||
|
!isJobRunning(job.status)
|
||||||
|
) {
|
||||||
clearInterval(interval.current);
|
clearInterval(interval.current);
|
||||||
}
|
}
|
||||||
if (jobSocketCounter.current > remoteRowCount && isMounted.current) {
|
if (jobSocketCounter.current > remoteRowCount && isMounted.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user