mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Hide host_filter search key when hiding smart inventories
This commit is contained in:
parent
8246d4a298
commit
f0a6567cd8
@ -69,7 +69,7 @@ function InventoryLookup({
|
||||
searchableKeys: Object.keys(
|
||||
actionsResponse.data.actions?.GET || {}
|
||||
).filter(key => {
|
||||
if (key === 'kind' && hideSmartInventories) {
|
||||
if (['kind', 'host_filter'].includes(key) && hideSmartInventories) {
|
||||
return false;
|
||||
}
|
||||
return actionsResponse.data.actions?.GET[key].filterable;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user