1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Add IDs for nodes badge and template name

This commit is contained in:
John Hill 2020-02-11 17:43:12 -05:00 committed by mabashian
parent 48eeeea7f3
commit 4ac5a1e15a

View File

@ -51,14 +51,14 @@ function VisualizerToolbar({ i18n, onClose, onSave, template }) {
return (
<div id="visualizer-toolbar">
<div css="align-items: center; border-bottom: 1px solid grey; display: flex; height: 56px; padding: 0px 20px;">
<div css="display: flex;">
<div css="display: flex;" id="visualizer-toolbar-template-name">
<b>{i18n._(t`Workflow Visualizer`)}</b>
<VerticalSeparator />
<b>{template.name}</b>
</div>
<div css="align-items: center; display: flex; flex: 1; justify-content: flex-end">
<div>{i18n._(t`Total Nodes`)}</div>
<Badge isRead>{totalNodes}</Badge>
<div >{i18n._(t`Total Nodes`)}</div>
<Badge id="visualizer-total-nodes-badge" isRead>{totalNodes}</Badge>
<VerticalSeparator />
<Tooltip content={i18n._(t`Toggle Legend`)} position="bottom">
<ActionButton