Merge pull request #11354 from nixocio/ui_issue_11350

Update search keys
This commit is contained in:
Sarah Akus 2021-11-17 14:56:46 -05:00 committed by GitHub
commit ee9d1356b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
},
{