Fix pop over text for job template details page.

This commit is contained in:
Kia Lam 2022-05-11 16:14:58 -07:00
parent a133a14b70
commit 10e55108ef
3 changed files with 4 additions and 3 deletions

View File

@ -245,7 +245,7 @@ function JobTemplateDetail({ template }) {
<ExecutionEnvironmentDetail
virtualEnvironment={custom_virtualenv}
executionEnvironment={summary_fields?.resolved_environment}
helpText={helpText.executionEnvironment}
helpText={helpText.executionEnvironmentDetail}
dataCy="jt-detail-execution-environment"
/>
<Detail

View File

@ -5,7 +5,8 @@ const jtHelpTextStrings = (brandName = '') => ({
jobType: t`For job templates, select run to execute the playbook. Select check to only check playbook syntax, test environment setup, and report problems without executing the playbook.`,
inventory: t`Select the inventory containing the hosts you want this job to manage.`,
project: t`Select the project containing the playbook you want this job to execute.`,
executionEnvironment: t`Select the execution environment for this job template.`,
executionEnvironmentForm: t`Select the execution environment for this job template.`,
executionEnvironmentDetail: t`The execution environment that will be used when launching this job template. The resolved execution environment can be overridden by explicitly assigning a different one to this job template.`,
playbook: t`Select the playbook to be executed by this job.`,
credentials: t`Select credentials for accessing the nodes this job will be ran against. You can only select one credential of each type. For machine credentials (SSH), checking "Prompt on launch" without selecting credentials will require you to select a machine credential at run time. If you select credentials and check "Prompt on launch", the selected credential(s) become the defaults that can be updated at run time.`,
labels: t`Optional labels that describe this job template, such as 'dev' or 'test'. Labels can be used to group and filter job templates and completed jobs.`,

View File

@ -323,7 +323,7 @@ function JobTemplateForm({
onBlur={() => executionEnvironmentHelpers.setTouched()}
value={executionEnvironmentField.value}
onChange={handleExecutionEnvironmentUpdate}
popoverContent={helpText.executionEnvironment}
popoverContent={helpText.executionEnvironmentForm}
tooltip={t`Select a project before editing the execution environment.`}
globallyAvailable
isDisabled={!projectField.value?.id}