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

View File

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

View File

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