diff --git a/awx/ui/client/features/templates/templates.strings.js b/awx/ui/client/features/templates/templates.strings.js index 4c53a69acd..750a973ba1 100644 --- a/awx/ui/client/features/templates/templates.strings.js +++ b/awx/ui/client/features/templates/templates.strings.js @@ -153,7 +153,8 @@ function TemplatesStrings (BaseString) { TIMED_OUT: t.s('APPROVAL TIMED OUT'), TIMEOUT: t.s('Timeout'), APPROVED: t.s('APPROVED'), - DENIED: t.s('DENIED') + DENIED: t.s('DENIED'), + ALL_PARENTS_MUST_CONVERGE: t.s('All parents must converge before running'), }; } diff --git a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js index 136b2e6cdf..64bce33067 100644 --- a/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js +++ b/awx/ui/client/src/templates/workflows/workflow-maker/forms/workflow-node-form.controller.js @@ -500,6 +500,10 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService type: 'workflow_job_template,job_template' }; + $scope.all_parents_must_converge = _.get( + $scope, ['nodeConfig', 'node', 'all_parents_must_converge'], + _.get($scope, ['nodeConfig', 'node', 'originalNodeObject', 'all_parents_must_converge'], false) + ); $scope.wf_maker_templates = []; $scope.wf_maker_template_dataset = {}; @@ -617,7 +621,8 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService $scope.confirmNodeForm = () => { const nodeFormData = { - edgeType: $scope.edgeType + edgeType: $scope.edgeType, + all_parents_must_converge: $scope.all_parents_must_converge, }; if ($scope.activeTab === "approval") { 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 b79ca9e79b..223897948f 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 @@ -183,6 +183,28 @@ +