mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Added network credential to the job details summary
This commit is contained in:
parent
1b8693f666
commit
ae8e15fbb3
@ -579,6 +579,14 @@ export default
|
||||
scope.cloud_credential_name = "";
|
||||
}
|
||||
|
||||
if (data.summary_fields.cloud_credential) {
|
||||
scope.network_credential_name = data.summary_fields.network_credential.name;
|
||||
scope.network_credential_url = data.related.network_credential
|
||||
.replace('api/v1', '#');
|
||||
} else {
|
||||
scope.network_credential_name = "";
|
||||
}
|
||||
|
||||
for (i=0; i < verbosity_options.length; i++) {
|
||||
if (verbosity_options[i].value === data.verbosity) {
|
||||
scope.verbosity = verbosity_options[i].label;
|
||||
|
||||
@ -127,6 +127,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group JobDetail-resultRow toggle-show" ng-show="network_credential_name">
|
||||
<label class="JobDetail-resultRowLabel col-lg-2 col-md-2 col-sm-2 col-xs-3 control-label">Network Credential</label>
|
||||
<div class="JobDetail-resultRowText">
|
||||
<a href="{{ network_credential_url }}" aw-tool-tip="Edit the credential" data-placement="top">{{ network_credential_name }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group JobDetail-resultRow toggle-show" ng-show="job.forks">
|
||||
<label class="JobDetail-resultRowLabel col-lg-2 col-md-2 col-sm-2 col-xs-3 control-label">Forks</label>
|
||||
<div class="JobDetail-resultRowText">{{ job.forks }}</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user