mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Merge pull request #12332 from nixocio/ui_issue_8097
Add typeahed for single choice surveys
This commit is contained in:
commit
ee13ddd87d
@ -122,7 +122,7 @@ function MultipleChoiceField({ question }) {
|
||||
setIsOpen(false);
|
||||
}}
|
||||
selections={field.value}
|
||||
variant={SelectVariant.single}
|
||||
variant={SelectVariant.typeahead}
|
||||
id={id}
|
||||
ouiaId={`single-survey-question-${question.variable}`}
|
||||
isOpen={isOpen}
|
||||
|
||||
@ -59,6 +59,7 @@ function TagMultiSelect({ onChange, value }) {
|
||||
typeAheadAriaLabel={t`Select tags`}
|
||||
noResultsFoundText={t`No results found`}
|
||||
ouiaId="tag-multiselect"
|
||||
createText={t`Create`}
|
||||
>
|
||||
{renderOptions(options)}
|
||||
</Select>
|
||||
|
||||
@ -63,6 +63,7 @@ function BecomeMethodField({ fieldOptions, isRequired }) {
|
||||
setOptions([...options, { value: option }]);
|
||||
}}
|
||||
noResultsFoundText={t`No results found`}
|
||||
createText={t`Create`}
|
||||
>
|
||||
{options.map((option) => (
|
||||
<SelectOption key={option.value} value={option.value} />
|
||||
|
||||
@ -44,7 +44,7 @@ function SurveyListItem({ canEdit, question, isChecked, onSelect, rowIndex }) {
|
||||
question.variable
|
||||
)}`}
|
||||
>
|
||||
{question.question_name}
|
||||
<b>{question.question_name}</b>
|
||||
</Link>
|
||||
{question.required && (
|
||||
<Required
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user