show license error details

This commit is contained in:
Jake McDermott 2018-05-09 19:38:51 -04:00
parent 4355b30afe
commit e19ffc1fba
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35
2 changed files with 20 additions and 0 deletions

View File

@ -216,6 +216,17 @@ function getOverwriteVarsDetails () {
return { label, value };
}
function getLicenseErrorDetails () {
if (!resource.model.has('license_error')) {
return null;
}
const label = 'License Error';
const value = resource.model.get('license_error');
return { label, value };
}
function getLaunchedByDetails () {
const createdBy = resource.model.get('summary_fields.created_by');
const jobTemplate = resource.model.get('summary_fields.job_template');
@ -682,6 +693,7 @@ function JobDetailsController (
vm.inventorySource = getInventorySourceDetails();
vm.overwrite = getOverwriteDetails();
vm.overwriteVars = getOverwriteVarsDetails();
vm.licenseError = getLicenseErrorDetails();
// Relaunch and Delete Components
vm.job = angular.copy(_.get(resource.model, 'model.GET', {}));

View File

@ -84,6 +84,14 @@
</div>
</div>
<!-- LICENSE ERROR DETAIL -->
<div class="JobResults-resultRow" ng-show="vm.licenseError">
<label class="JobResults-resultRowLabel">{{ vm.licenseError.label }}</label>
<div class="JobResults-resultRowText">
{{ vm.licenseError.value }}
</div>
</div>
<!-- START TIME DETAIL -->
<div class="JobResults-resultRow" ng-if="vm.started">
<label class="JobResults-resultRowLabel">{{ vm.started.label }}</label>