From 40f0548fe7b3d4016b0b2750624612df9602dcdd Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 26 Jun 2015 12:14:25 -0400 Subject: [PATCH] Fixed jobs list search params the jobs list page accepts query params for status, but this functionality broke w/ the change to 1 pane instead of 4. Now its fixed --- awx/ui/static/js/controllers/Jobs.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/Jobs.js b/awx/ui/static/js/controllers/Jobs.js index 2d5147238c..a795326be0 100644 --- a/awx/ui/static/js/controllers/Jobs.js +++ b/awx/ui/static/js/controllers/Jobs.js @@ -37,12 +37,14 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $routePa } }); + + // After all choices are ready, load up the lists and populate the page if ($scope.removeBuildJobsList) { $scope.removeBuildJobsList(); } $scope.removeBuildJobsList = $scope.$on('buildJobsList', function() { - var opt, search_params; + var opt, search_params={}; if (AllJobsList.fields.type) { AllJobsList.fields.type.searchOptions = $scope.type_choices; @@ -69,8 +71,11 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $routePa id: 'active-jobs', url: GetBasePath('unified_jobs') + '?status__in=pending,running,completed,failed,successful,error,canceled', pageSize: max_rows, + searchParams: search_params, spinner: false }); + + scheduled_scope = $scope.$new(true); LoadSchedulesScope({ parent_scope: $scope,