mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Hide message stating that the resource has been deleted if the output node is an approval node
This commit is contained in:
parent
25fe2a2ce6
commit
aa6857fd38
@ -111,16 +111,17 @@ function WorkflowNodeHelp({ node, i18n }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{!node.unifiedJobTemplate && (
|
||||
<>
|
||||
<ResourceDeleted job={node.job}>
|
||||
<StyledExclamationTriangleIcon />
|
||||
<Trans>
|
||||
The resource associated with this node has been deleted.
|
||||
</Trans>
|
||||
</ResourceDeleted>
|
||||
</>
|
||||
)}
|
||||
{!node.unifiedJobTemplate &&
|
||||
(!node.job || node.job.type !== 'workflow_approval') && (
|
||||
<>
|
||||
<ResourceDeleted job={node.job}>
|
||||
<StyledExclamationTriangleIcon />
|
||||
<Trans>
|
||||
The resource associated with this node has been deleted.
|
||||
</Trans>
|
||||
</ResourceDeleted>
|
||||
</>
|
||||
)}
|
||||
{node.job && (
|
||||
<GridDL>
|
||||
<dt>
|
||||
|
||||
@ -13,6 +13,7 @@ describe('WorkflowNodeHelp', () => {
|
||||
name: 'Foo Job Template',
|
||||
elapsed: 9000,
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
},
|
||||
unifiedJobTemplate: {
|
||||
name: 'Foo Job Template',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user