1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Add execution node field to job details panel

This commit is contained in:
Marliana Lara 2019-01-28 13:48:50 -05:00
parent 9d501327fc
commit eca530c788
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
3 changed files with 21 additions and 1 deletions

View File

@ -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();

View File

@ -295,6 +295,12 @@
<div class="JobResults-resultRowText">{{ vm.environment.value }}</div>
</div>
<!-- EXECUTION Node DETAIL -->
<div class="JobResults-resultRow" ng-if="vm.executionNode">
<label class="JobResults-resultRowLabel">{{ vm.executionNode.label }}</label>
<div class="JobResults-resultRowText">{{ vm.executionNode.value }}</div>
</div>
<!-- IG DETAIL -->
<div class="JobResults-resultRow" ng-if="vm.instanceGroup">
<label class="JobResults-resultRowLabel">{{ vm.instanceGroup.label }}</label>
@ -320,7 +326,6 @@
</div>
</div>
<!-- EXTRA VARIABLES DETAIL -->
<at-code-mirror
class="JobResults-resultRow"

View File

@ -51,6 +51,7 @@ function OutputStrings (BaseString) {
ns.labels = {
CREDENTIAL: t.s('Credential'),
ENVIRONMENT: t.s('Environment'),
EXECUTION_NODE: t.s('Execution Node'),
EXTRA_VARS: t.s('Extra Variables'),
FINISHED: t.s('Finished'),
FORKS: t.s('Forks'),