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