diff --git a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-link-form.partial.html b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-link-form.partial.html index bcbdf10937..590ca7cee7 100644 --- a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-link-form.partial.html +++ b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-link-form.partial.html @@ -1,4 +1,6 @@ -
{{readOnly ? strings.get('workflow_maker.VIEW_LINK') : (linkConfig.mode === 'add' ? strings.get('workflow_maker.ADD_LINK') : strings.get('workflow_maker.EDIT_LINK')) }} | {{linkConfig.source.name}} {{linkConfig.target ? 'to ' + linkConfig.target.name : ''}}
+
+ {{readOnly ? strings.get('workflow_maker.VIEW_LINK') : (linkConfig.mode === 'add' ? strings.get('workflow_maker.ADD_LINK') : strings.get('workflow_maker.EDIT_LINK')) }} | {{linkConfig.source.name}} {{linkConfig.target ? '→ ' + linkConfig.target.name : ''}} +
{{:: strings.get('workflow_maker.NEW_LINK')}}
diff --git a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.partial.html b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.partial.html index beadf08571..7e9c23bc64 100644 --- a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.partial.html +++ b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.partial.html @@ -15,7 +15,7 @@
No records matched your search.
-
PLEASE ADD ITEMS TO THIS LIST
+
PLEASE ADD ITEMS TO THIS LIST
diff --git a/awx/ui/client/src/templates/workflows/workflow-maker/workflow-maker.controller.js b/awx/ui/client/src/templates/workflows/workflow-maker/workflow-maker.controller.js index 2ffc6fc18a..0bbf178be3 100644 --- a/awx/ui/client/src/templates/workflows/workflow-maker/workflow-maker.controller.js +++ b/awx/ui/client/src/templates/workflows/workflow-maker/workflow-maker.controller.js @@ -404,7 +404,10 @@ export default ['$scope', 'TemplatesService', $scope.graphState.nodeBeingAdded = workflowMakerNodeIdCounter; $scope.graphState.arrayOfLinksForChart.push({ - source: {id: parent.id}, + source: { + id: parent.id, + unifiedJobTemplate: parent.unifiedJobTemplate + }, target: {id: workflowMakerNodeIdCounter}, edgeType: "placeholder" }); @@ -439,7 +442,10 @@ export default ['$scope', 'TemplatesService', $scope.graphState.nodeBeingAdded = workflowMakerNodeIdCounter; $scope.graphState.arrayOfLinksForChart.push({ - source: {id: link.source.id}, + source: { + id: link.source.id, + unifiedJobTemplate: link.source.unifiedJobTemplate + }, target: {id: workflowMakerNodeIdCounter}, edgeType: "placeholder" }); @@ -480,6 +486,7 @@ export default ['$scope', 'TemplatesService', $scope.graphState.arrayOfLinksForChart.map( (link) => { if (link.target.id === nodeId) { link.edgeType = edgeType.value; + link.target.unifiedJobTemplate = selectedTemplate; } }); } @@ -489,6 +496,15 @@ export default ['$scope', 'TemplatesService', nodeRef[$scope.nodeConfig.nodeId].promptData = _.cloneDeep(promptData); nodeRef[$scope.nodeConfig.nodeId].isEdited = true; $scope.graphState.nodeBeingEdited = null; + + $scope.graphState.arrayOfLinksForChart.map( (link) => { + if (link.target.id === nodeId) { + link.target.unifiedJobTemplate = selectedTemplate; + } + if (link.source.id === nodeId) { + link.source.unifiedJobTemplate = selectedTemplate; + } + }); } }