mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Merge pull request #6926 from nixocio/ui_issue_6887
Fix Button 'Create' - to be marked for translation Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
77ee2191ed
@ -336,6 +336,7 @@ function JobTemplateForm({
|
||||
value={labelsField.value}
|
||||
onChange={labels => labelsHelpers.setValue(labels)}
|
||||
onError={setContentError}
|
||||
createText={i18n._(t`Create`)}
|
||||
/>
|
||||
</FormGroup>
|
||||
<VariablesField
|
||||
|
||||
@ -29,7 +29,7 @@ async function loadLabelOptions(setLabels, onError) {
|
||||
}
|
||||
}
|
||||
|
||||
function LabelSelect({ value, placeholder, onChange, onError }) {
|
||||
function LabelSelect({ value, placeholder, onChange, onError, createText }) {
|
||||
const { selections, onSelect, options, setOptions } = useSyncedSelectValue(
|
||||
value,
|
||||
onChange
|
||||
@ -81,6 +81,7 @@ function LabelSelect({ value, placeholder, onChange, onError }) {
|
||||
isExpanded={isExpanded}
|
||||
ariaLabelledBy="label-select"
|
||||
placeholderText={placeholder}
|
||||
createText={createText}
|
||||
>
|
||||
{renderOptions(options)}
|
||||
</Select>
|
||||
|
||||
@ -251,6 +251,7 @@ function WorkflowJobTemplateForm({
|
||||
value={labelsField.value}
|
||||
onChange={labels => labelsHelpers.setValue(labels)}
|
||||
onError={setContentError}
|
||||
createText={i18n._(t`Create`)}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FormFullWidthLayout>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user