mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 19:37:38 -02:30
Consume finished timestamp from websocket message when it's available to update the relevant row in the templates list.
This commit is contained in:
@@ -138,6 +138,10 @@ function ListTemplatesController(
|
|||||||
const recentJob = template.summary_fields.recent_jobs[i];
|
const recentJob = template.summary_fields.recent_jobs[i];
|
||||||
if (recentJob.id === msg.unified_job_id) {
|
if (recentJob.id === msg.unified_job_id) {
|
||||||
recentJob.status = msg.status;
|
recentJob.status = msg.status;
|
||||||
|
if (msg.finished) {
|
||||||
|
recentJob.finished = msg.finished;
|
||||||
|
template.last_job_run = msg.finished;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user