From bc08c02b896db8a9691bb89c79603b25e32e5594 Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 6 Feb 2020 10:40:24 -0500 Subject: [PATCH] Adds ID's to toolbar(s) and action buttons within visualizer/output toolbars. --- .../Job/WorkflowOutput/WorkflowOutputToolbar.jsx | 6 +++--- .../VisualizerToolbar.jsx | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx b/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx index 3f0410ce55..26907ab3e4 100644 --- a/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx +++ b/awx/ui_next/src/screens/Job/WorkflowOutput/WorkflowOutputToolbar.jsx @@ -65,7 +65,7 @@ function WorkflowOutputToolbar({ i18n, job }) { const totalNodes = nodes.reduce((n, node) => n + !node.isDeleted, 0) - 1; return ( - + {job.name} @@ -76,7 +76,7 @@ function WorkflowOutputToolbar({ i18n, job }) { dispatch({ type: 'TOGGLE_LEGEND' })} variant="plain" @@ -86,7 +86,7 @@ function WorkflowOutputToolbar({ i18n, job }) { dispatch({ type: 'TOGGLE_TOOLS' })} variant="plain" diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/VisualizerToolbar.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/VisualizerToolbar.jsx index 701f7d1250..cf7d2fedbb 100644 --- a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/VisualizerToolbar.jsx +++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/VisualizerToolbar.jsx @@ -48,7 +48,7 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) { const totalNodes = nodes.reduce((n, node) => n + !node.isDeleted, 0) - 1; return ( -
+
{i18n._(t`Workflow Visualizer`)} @@ -61,6 +61,7 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) { dispatch({ type: 'TOGGLE_LEGEND' })} variant="plain" @@ -70,6 +71,7 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) { dispatch({ type: 'TOGGLE_TOOLS' })} variant="plain" @@ -77,14 +79,15 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) { - + - + @@ -100,6 +103,7 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) {