Adds help text to host limit error shown in the output details of inventory sync jobs

This commit is contained in:
mabashian
2019-02-27 14:55:10 -05:00
committed by Jeff Bradberry
parent cc3f2e0819
commit a82304765d
3 changed files with 16 additions and 2 deletions

View File

@@ -242,9 +242,10 @@ function getHostLimitErrorDetails () {
} }
const label = strings.get('labels.HOST_LIMIT_ERROR'); const label = strings.get('labels.HOST_LIMIT_ERROR');
const tooltip = strings.get('tooltips.HOST_LIMIT');
const value = resource.model.get('org_host_limit_error'); const value = resource.model.get('org_host_limit_error');
return { label, value }; return { tooltip, label, value };
} }
function getLaunchedByDetails () { function getLaunchedByDetails () {

View File

@@ -83,7 +83,19 @@
<!-- HOST LIMIT ERROR DETAIL --> <!-- HOST LIMIT ERROR DETAIL -->
<div class="JobResults-resultRow" ng-show="vm.hostLimitError"> <div class="JobResults-resultRow" ng-show="vm.hostLimitError">
<label class="JobResults-resultRowLabel">{{ vm.hostLimitError.label }}</label> <label class="JobResults-resultRowLabel">
{{ vm.hostLimitError.label }}
<a id="awp-hostLimitError"
href=""
aw-pop-over="{{ vm.hostLimitError.tooltip }}"
data-placement="top"
data-container="body"
class="help-link"
title="{{ vm.hostLimitError.label }}"
tabindex="-1">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div class="JobResults-resultRowText"> <div class="JobResults-resultRowText">
{{ vm.hostLimitError.value }} {{ vm.hostLimitError.value }}
</div> </div>

View File

@@ -22,6 +22,7 @@ function OutputStrings (BaseString) {
CREDENTIAL: t.s('View the Credential'), CREDENTIAL: t.s('View the Credential'),
EXPAND_OUTPUT: t.s('Expand Output'), EXPAND_OUTPUT: t.s('Expand Output'),
EXTRA_VARS: t.s('Read-only view of extra variables added to the job template'), EXTRA_VARS: t.s('Read-only view of extra variables added to the job template'),
HOST_LIMIT: t.s('When this field is true, the job\'s inventory belongs to an organization that has exceeded it\'s limit of hosts as defined by the system administrator.'),
INVENTORY: t.s('View the Inventory'), INVENTORY: t.s('View the Inventory'),
INVENTORY_SCM: t.s('View the Project'), INVENTORY_SCM: t.s('View the Project'),
INVENTORY_SCM_JOB: t.s('View Project checkout results'), INVENTORY_SCM_JOB: t.s('View Project checkout results'),