From 3234f246db186d52722cde6990705efa5a8f17de Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 24 Feb 2020 12:28:46 -0500 Subject: [PATCH] Consume finished timestamp from websocket message when it's available to update the relevant row in the templates list. --- awx/ui/client/features/templates/templatesList.controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index 8481135d1e..2500a78816 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -138,6 +138,10 @@ function ListTemplatesController( const recentJob = template.summary_fields.recent_jobs[i]; if (recentJob.id === msg.unified_job_id) { recentJob.status = msg.status; + if (msg.finished) { + recentJob.finished = msg.finished; + template.last_job_run = msg.finished; + } break; } };