mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
AC-1239 broken links on home page to inventory sync status.
This commit is contained in:
parent
5823347c52
commit
af25d473fc
@ -240,16 +240,21 @@ function HomeGroups($scope, $filter, $compile, $location, $routeParams, LogViewe
|
||||
}
|
||||
|
||||
if ($routeParams.status && !$routeParams.source) {
|
||||
scope[list.iterator + 'SearchField'] = 'status';
|
||||
scope[list.iterator + 'SelectShow'] = true;
|
||||
scope[list.iterator + 'SearchSelectOpts'] = list.fields.status.searchOptions;
|
||||
scope[list.iterator + 'SearchFieldLabel'] = list.fields.status.label.replace(/<br\>/g, ' ');
|
||||
for (opt in list.fields.status.searchOptions) {
|
||||
if (list.fields.status.searchOptions[opt].value === $routeParams.status) {
|
||||
scope[list.iterator + 'SearchSelectValue'] = list.fields.status.searchOptions[opt];
|
||||
break;
|
||||
}
|
||||
}
|
||||
scope[list.iterator + 'SearchField'] = 'last_update_failed';
|
||||
scope[list.iterator + 'SearchFieldLabel'] = list.fields.last_update_failed.label;
|
||||
scope[list.iterator + 'SelectShow'] = false;
|
||||
scope[list.iterator + 'SearchValue'] = 'failed';
|
||||
scope[list.iterator + 'SearchSelectValue'] = { value: 'failed' };
|
||||
|
||||
//scope[list.iterator + 'SelectShow'] = true;
|
||||
//scope[list.iterator + 'SearchSelectOpts'] = list.fields.status.searchOptions;
|
||||
//scope[list.iterator + 'SearchFieldLabel'] = list.fields.status.label.replace(/<br\>/g, ' ');
|
||||
//for (opt in list.fields.status.searchOptions) {
|
||||
// if (list.fields.status.searchOptions[opt].value === $routeParams.status) {
|
||||
// scope[list.iterator + 'SearchSelectValue'] = list.fields.status.searchOptions[opt];
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
if ($routeParams.source) {
|
||||
|
Loading…
Reference in New Issue
Block a user