From eca530c788d9b78b16931a67d2d9cf243e54d9be Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 28 Jan 2019 13:48:50 -0500 Subject: [PATCH] Add execution node field to job details panel --- awx/ui/client/features/output/details.component.js | 14 ++++++++++++++ awx/ui/client/features/output/details.partial.html | 7 ++++++- awx/ui/client/features/output/output.strings.js | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/awx/ui/client/features/output/details.component.js b/awx/ui/client/features/output/details.component.js index 3cece3143a..8cc6762a77 100644 --- a/awx/ui/client/features/output/details.component.js +++ b/awx/ui/client/features/output/details.component.js @@ -481,6 +481,19 @@ function getLimitDetails () { return { label, value }; } +function getExecutionNodeDetails () { + const executionNode = resource.model.get('execution_node'); + + if (!executionNode) { + return null; + } + + const label = strings.get('labels.EXECUTION_NODE'); + const value = $filter('sanitize')(executionNode); + + return { label, value }; +} + function getInstanceGroupDetails () { const instanceGroup = resource.model.get('summary_fields.instance_group'); @@ -761,6 +774,7 @@ function JobDetailsController ( vm.credentials = getCredentialDetails(); vm.forks = getForkDetails(); vm.limit = getLimitDetails(); + vm.executionNode = getExecutionNodeDetails(); vm.instanceGroup = getInstanceGroupDetails(); vm.jobTags = getJobTagDetails(); vm.skipTags = getSkipTagDetails(); diff --git a/awx/ui/client/features/output/details.partial.html b/awx/ui/client/features/output/details.partial.html index dc979923dd..b73b0c943e 100644 --- a/awx/ui/client/features/output/details.partial.html +++ b/awx/ui/client/features/output/details.partial.html @@ -295,6 +295,12 @@
{{ vm.environment.value }}
+ +
+ +
{{ vm.executionNode.value }}
+
+
@@ -320,7 +326,6 @@
-