mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
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
This commit is contained in:
@@ -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
|
// After all choices are ready, load up the lists and populate the page
|
||||||
if ($scope.removeBuildJobsList) {
|
if ($scope.removeBuildJobsList) {
|
||||||
$scope.removeBuildJobsList();
|
$scope.removeBuildJobsList();
|
||||||
}
|
}
|
||||||
$scope.removeBuildJobsList = $scope.$on('buildJobsList', function() {
|
$scope.removeBuildJobsList = $scope.$on('buildJobsList', function() {
|
||||||
var opt, search_params;
|
var opt, search_params={};
|
||||||
|
|
||||||
if (AllJobsList.fields.type) {
|
if (AllJobsList.fields.type) {
|
||||||
AllJobsList.fields.type.searchOptions = $scope.type_choices;
|
AllJobsList.fields.type.searchOptions = $scope.type_choices;
|
||||||
@@ -69,8 +71,11 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $routePa
|
|||||||
id: 'active-jobs',
|
id: 'active-jobs',
|
||||||
url: GetBasePath('unified_jobs') + '?status__in=pending,running,completed,failed,successful,error,canceled',
|
url: GetBasePath('unified_jobs') + '?status__in=pending,running,completed,failed,successful,error,canceled',
|
||||||
pageSize: max_rows,
|
pageSize: max_rows,
|
||||||
|
searchParams: search_params,
|
||||||
spinner: false
|
spinner: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
scheduled_scope = $scope.$new(true);
|
scheduled_scope = $scope.$new(true);
|
||||||
LoadSchedulesScope({
|
LoadSchedulesScope({
|
||||||
parent_scope: $scope,
|
parent_scope: $scope,
|
||||||
|
|||||||
Reference in New Issue
Block a user