From 394ad8d6851ca67709719548afe78c6986861a40 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Thu, 14 Jan 2021 12:48:20 -0500 Subject: [PATCH] fix workflow event activity steam linking --- .../screens/ActivityStream/buildActivityDescription.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/awx/ui_next/src/screens/ActivityStream/buildActivityDescription.jsx b/awx/ui_next/src/screens/ActivityStream/buildActivityDescription.jsx index 6e9f12b9c937..645923a9cb28 100644 --- a/awx/ui_next/src/screens/ActivityStream/buildActivityDescription.jsx +++ b/awx/ui_next/src/screens/ActivityStream/buildActivityDescription.jsx @@ -52,6 +52,9 @@ const buildAnchor = (obj, resource, activity) => { if (activity.summary_fields.job_template) { const jt_id = activity.summary_fields.job_template[0].id; url = `/templates/job_template/${jt_id}/schedules/${obj.id}/`; + } else if (activity.summary_fields.workflow_job_template) { + const wfjt_id = activity.summary_fields.workflow_job_template[0].id; + url = `/templates/workflow_job_template/${wfjt_id}/schedules/${obj.id}/`; } else if (activity.summary_fields.project) { url = `/projects/${activity.summary_fields.project[0].id}/schedules/${obj.id}/`; } else if (activity.summary_fields.system_job_template) { @@ -82,8 +85,8 @@ const buildAnchor = (obj, resource, activity) => { break; case 'workflow_job_template_node': { const { - wfjt_id, - wfjt_name, + id: wfjt_id, + name: wfjt_name, } = activity.summary_fields.workflow_job_template[0]; url = `/templates/workflow_job_template/${wfjt_id}/`; name = wfjt_name;