1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #2853 from jaredevantabor/hosts-disabled-search

Searching for disabled hosts was searching for enabled hosts
This commit is contained in:
Jared Tabor 2016-07-07 15:28:48 -07:00 committed by GitHub
commit 32633bb2aa
2 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,10 @@ export default
label: 'Disabled?',
searchSingleValue: true,
searchType: 'boolean',
typeOptions: [
{label: "Yes", value: false},
{label: "No", value: true}
],
searchValue: 'false',
searchOnly: true
},

View File

@ -25,7 +25,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
typeOptions = field.searchOptions || [];
} else if (field.searchType === 'boolean') {
type = 'select';
typeOptions = [{label: "Yes", value: true},
typeOptions = field.typeOptions || [{label: "Yes", value: true},
{label: "No", value: false}];
} else {
type = 'text';