Update search keys

Update search keys.

See: https://github.com/ansible/awx/issues/11350
This commit is contained in:
nixocio 2021-11-16 15:32:50 -05:00
parent 229f0d97f9
commit 3dc6a055ac
3 changed files with 10 additions and 3 deletions

View File

@ -58,7 +58,7 @@ function InstanceGroupList({
const match = useRouteMatch();
const {
error: protectedItemsError,
isloading: isLoadingProtectedItems,
isLoading: isLoadingProtectedItems,
request: fetchProtectedItems,
result: { defaultControlPlane, defaultExecution },
} = useRequest(
@ -248,6 +248,13 @@ function InstanceGroupList({
clearSelected={clearSelected}
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
toolbarSearchColumns={[
{
name: t`Name`,
key: 'name__icontains',
isDefault: true,
},
]}
renderToolbar={(props) => (
<DatalistToolbar
{...props}

View File

@ -178,7 +178,7 @@ function InstanceList() {
toolbarSearchColumns={[
{
name: t`Name`,
key: 'hostname',
key: 'hostname__icontains',
isDefault: true,
},
]}

View File

@ -67,7 +67,7 @@ function SmartInventoryHostList({ inventory }) {
toolbarSearchColumns={[
{
name: t`Name`,
key: 'name',
key: 'name__icontains',
isDefault: true,
},
{