From 3dc6a055acea6225d86553abfa4f89ce6ce4bd66 Mon Sep 17 00:00:00 2001 From: nixocio Date: Tue, 16 Nov 2021 15:32:50 -0500 Subject: [PATCH] Update search keys Update search keys. See: https://github.com/ansible/awx/issues/11350 --- .../InstanceGroup/InstanceGroupList/InstanceGroupList.js | 9 ++++++++- .../src/screens/InstanceGroup/Instances/InstanceList.js | 2 +- .../SmartInventoryHosts/SmartInventoryHostList.js | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/awx/ui/src/screens/InstanceGroup/InstanceGroupList/InstanceGroupList.js b/awx/ui/src/screens/InstanceGroup/InstanceGroupList/InstanceGroupList.js index 096d818014..b1fccdbc81 100644 --- a/awx/ui/src/screens/InstanceGroup/InstanceGroupList/InstanceGroupList.js +++ b/awx/ui/src/screens/InstanceGroup/InstanceGroupList/InstanceGroupList.js @@ -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) => (