From 73d21a01cbef3294de2f92ec40f9e90434973d9d Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 26 Aug 2020 17:03:48 -0400 Subject: [PATCH] Adds visualizer button to workflow template rows on templates list --- .../TemplateList/TemplateListItem.jsx | 21 +++++++++++++--- .../TemplateList/TemplateListItem.test.jsx | 25 +++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.jsx b/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.jsx index eb0be40346..10a34bedc7 100644 --- a/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.jsx +++ b/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.jsx @@ -15,6 +15,7 @@ import { withI18n } from '@lingui/react'; import { ExclamationTriangleIcon, PencilAltIcon, + ProjectDiagramIcon, RocketIcon, } from '@patternfly/react-icons'; import styled from 'styled-components'; @@ -32,7 +33,7 @@ const DataListAction = styled(_DataListAction)` align-items: center; display: grid; grid-gap: 16px; - grid-template-columns: repeat(3, 40px); + grid-template-columns: repeat(4, 40px); `; function TemplateListItem({ @@ -104,6 +105,20 @@ function TemplateListItem({ ]} /> + {template.type === 'workflow_job_template' && ( + + + + )} {template.summary_fields.user_capabilities.start && ( @@ -111,7 +126,7 @@ function TemplateListItem({