mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Searching for disabled hosts was searching for enabled hosts
The API can only search hosts by "enabled": yes or no (t/f). However on the UI we want to search by "disabled" so needed to override the boolean values for this particular search
This commit is contained in:
@@ -54,6 +54,10 @@ export default
|
|||||||
label: 'Disabled?',
|
label: 'Disabled?',
|
||||||
searchSingleValue: true,
|
searchSingleValue: true,
|
||||||
searchType: 'boolean',
|
searchType: 'boolean',
|
||||||
|
typeOptions: [
|
||||||
|
{label: "Yes", value: false},
|
||||||
|
{label: "No", value: true}
|
||||||
|
],
|
||||||
searchValue: 'false',
|
searchValue: 'false',
|
||||||
searchOnly: true
|
searchOnly: true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
|
|||||||
typeOptions = field.searchOptions || [];
|
typeOptions = field.searchOptions || [];
|
||||||
} else if (field.searchType === 'boolean') {
|
} else if (field.searchType === 'boolean') {
|
||||||
type = 'select';
|
type = 'select';
|
||||||
typeOptions = [{label: "Yes", value: true},
|
typeOptions = field.typeOptions || [{label: "Yes", value: true},
|
||||||
{label: "No", value: false}];
|
{label: "No", value: false}];
|
||||||
} else {
|
} else {
|
||||||
type = 'text';
|
type = 'text';
|
||||||
|
|||||||
Reference in New Issue
Block a user