From af25d473fcaaf0034ba8733964a66d7c7120f039 Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Tue, 13 May 2014 01:49:26 -0400 Subject: [PATCH] AC-1239 broken links on home page to inventory sync status. --- awx/ui/static/js/controllers/Home.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/awx/ui/static/js/controllers/Home.js b/awx/ui/static/js/controllers/Home.js index d0f817b262..19fb1ff682 100644 --- a/awx/ui/static/js/controllers/Home.js +++ b/awx/ui/static/js/controllers/Home.js @@ -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(//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(//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) {