mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Fix Button 'Create' - to be marked for translation
Fix Button 'Create' - to be marked for translation closes: https://github.com/ansible/awx/issues/6887
This commit is contained in:
parent
63fec77f82
commit
44311c163c
@ -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…
Reference in New Issue
Block a user