mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
show overwrite details
This commit is contained in:
parent
43ea72e278
commit
4355b30afe
@ -194,6 +194,28 @@ function getInventorySourceDetails () {
|
||||
return { label, value };
|
||||
}
|
||||
|
||||
function getOverwriteDetails () {
|
||||
if (!resource.model.has('overwrite')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const label = 'Overwrite';
|
||||
const value = resource.model.get('overwrite');
|
||||
|
||||
return { label, value };
|
||||
}
|
||||
|
||||
function getOverwriteVarsDetails () {
|
||||
if (!resource.model.has('overwrite_vars')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const label = 'Overwrite Vars';
|
||||
const value = resource.model.get('overwrite_vars');
|
||||
|
||||
return { label, value };
|
||||
}
|
||||
|
||||
function getLaunchedByDetails () {
|
||||
const createdBy = resource.model.get('summary_fields.created_by');
|
||||
const jobTemplate = resource.model.get('summary_fields.job_template');
|
||||
@ -658,6 +680,8 @@ function JobDetailsController (
|
||||
vm.labels = getLabelDetails();
|
||||
vm.inventoryJobName = getInventoryJobNameDetails();
|
||||
vm.inventorySource = getInventorySourceDetails();
|
||||
vm.overwrite = getOverwriteDetails();
|
||||
vm.overwriteVars = getOverwriteVarsDetails();
|
||||
|
||||
// Relaunch and Delete Components
|
||||
vm.job = angular.copy(_.get(resource.model, 'model.GET', {}));
|
||||
|
@ -228,6 +228,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- OVERWRITE DETAIL -->
|
||||
<div class="JobResults-resultRow" ng-show="vm.overwrite">
|
||||
<label class="JobResults-resultRowLabel">{{ vm.overwrite.label }}</label>
|
||||
<div class="JobResults-resultRowText">
|
||||
{{ vm.overwrite.value }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- OVERWRITE VARS DETAIL -->
|
||||
<div class="JobResults-resultRow" ng-show="vm.overwriteVars">
|
||||
<label class="JobResults-resultRowLabel">{{ vm.overwriteVars.label }}</label>
|
||||
<div class="JobResults-resultRowText">
|
||||
{{ vm.overwriteVars.value }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FORKS DETAIL -->
|
||||
<div class="JobResults-resultRow" ng-if="vm.forks">
|
||||
<label class="JobResults-resultRowLabel">{{ vm.forks.label }}</label>
|
||||
|
Loading…
Reference in New Issue
Block a user