From d93f62c030b1ee36d163e5e83d951db480e68558 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Fri, 4 Jun 2021 09:51:43 -0400 Subject: [PATCH] Add search config for inventory hosts --- .../InventoryHosts/InventoryHostList.jsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHostList.jsx b/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHostList.jsx index 44a52af3b2..80c614f27c 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHostList.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryHosts/InventoryHostList.jsx @@ -114,6 +114,25 @@ function InventoryHostList() { clearSelected={clearSelected} toolbarSearchableKeys={searchableKeys} toolbarRelatedSearchableKeys={relatedSearchableKeys} + toolbarSearchColumns={[ + { + name: t`Name`, + key: 'name__icontains', + isDefault: true, + }, + { + name: t`Description`, + key: 'description__icontains', + }, + { + name: t`Created By (Username)`, + key: 'created_by__username__icontains', + }, + { + name: t`Modified By (Username)`, + key: 'modified_by__username__icontains', + }, + ]} headerRow={ {t`Name`}