update rest of lookups to use correct searchableKeys props

This commit is contained in:
John Mitchell 2020-08-05 13:40:41 -04:00 committed by John Mitchell
parent f8bd8abc82
commit cbea77a90c
8 changed files with 17 additions and 24 deletions

View File

@ -95,8 +95,8 @@ function InventoryStep({ i18n }) {
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
header={i18n._(t`Inventory`)}
name="inventory"
qsConfig={QS_CONFIG}

View File

@ -101,8 +101,8 @@ function ApplicationLookup({ i18n, onChange, value, label }) {
key: 'description',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
readOnly={!canDelete}
name="application"
selectItem={item => dispatch({ type: 'SELECT_ITEM', item })}

View File

@ -139,8 +139,8 @@ function CredentialLookup({
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
readOnly={!canDelete}
name="credential"
selectItem={item => dispatch({ type: 'SELECT_ITEM', item })}

View File

@ -100,8 +100,8 @@ function InstanceGroupsLookup(props) {
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
multiple={state.multiple}
header={i18n._(t`Instance Groups`)}
name="instanceGroups"

View File

@ -88,8 +88,8 @@ function InventoryLookup({ value, onChange, onBlur, required, i18n, history }) {
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
multiple={state.multiple}
header={i18n._(t`Inventory`)}
name="inventory"

View File

@ -125,8 +125,8 @@ function InventoryScriptLookup({
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
/>
)}
/>

View File

@ -181,8 +181,8 @@ function MultiCredentialsLookup(props) {
key: 'name',
},
]}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
searchableKeys={searchableKeys}
relatedSearchableKeys={relatedSearchableKeys}
multiple={isVault}
header={i18n._(t`Credentials`)}
name="credentials"

View File

@ -95,32 +95,25 @@ function AdvancedSearch({
>
<SelectOption
key="and"
value={i18n._(t`and`)}
value="and"
description={i18n._(
t`Returns results that satisfy this one as well as other filters. This is the default set type if nothing is selected.`
)}
/>
<SelectOption
key="or"
value={i18n._(t`or`)}
value="or"
description={i18n._(
t`Returns results that satisfy this one or any other filters.`
)}
/>
<SelectOption
key="not"
value={i18n._(t`not`)}
value="not"
description={i18n._(
t`Returns results that have values other than this one as well as other filters.`
)}
/>
<SelectOption
key="or_not"
value={i18n._(t`or/not`)}
description={i18n._(
t`Returns results that have values other than this one or any other filters.`
)}
/>
</Select>
<Select
aria-label={i18n._(t`Key select`)}