mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Merge pull request #9417 from mabashian/typeahead-select-ouia
Adds ouia id's to typeahead select components Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
4cdec9c297
@ -148,10 +148,10 @@ function CredentialFormFields({ i18n, credentialTypes }) {
|
||||
label={i18n._(t`Credential Type`)}
|
||||
>
|
||||
<Select
|
||||
ouiaId="CredentialForm-credential_type"
|
||||
aria-label={i18n._(t`Credential Type`)}
|
||||
isOpen={isSelectOpen}
|
||||
variant={SelectVariant.typeahead}
|
||||
ouiaId="credential-select"
|
||||
onToggle={setIsSelectOpen}
|
||||
onSelect={(event, value) => {
|
||||
credTypeHelpers.setValue(value);
|
||||
|
||||
@ -42,6 +42,7 @@ function BecomeMethodField({ fieldOptions, isRequired }) {
|
||||
validated={!(meta.touched && meta.error) ? 'default' : 'error'}
|
||||
>
|
||||
<Select
|
||||
ouiaId={`CredentialForm-${fieldOptions.id}`}
|
||||
maxHeight={200}
|
||||
variant={SelectVariant.typeahead}
|
||||
onToggle={setIsOpen}
|
||||
|
||||
@ -109,6 +109,7 @@ const SCMSubForm = ({ autoPopulateProject, i18n }) => {
|
||||
}
|
||||
>
|
||||
<Select
|
||||
ouiaId="InventorySourceForm-source_path"
|
||||
variant={SelectVariant.typeahead}
|
||||
onToggle={setIsOpen}
|
||||
isOpen={isOpen}
|
||||
|
||||
@ -50,6 +50,7 @@ function PlaybookSelect({
|
||||
|
||||
return (
|
||||
<Select
|
||||
ouiaId="JobTemplateForm-playbook"
|
||||
isOpen={isOpen}
|
||||
variant={SelectVariant.typeahead}
|
||||
selections={selected}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user