mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Only filter portal jobs on the first init
This commit is contained in:
parent
a2f0f7a6dc
commit
d9a47b7b7f
@ -23,7 +23,7 @@ export function PortalModeJobsController($scope, $rootScope, GetBasePath, Genera
|
||||
$scope.iterator = list.iterator;
|
||||
$scope.activeFilter = 'user';
|
||||
|
||||
var init = function(){
|
||||
var init = function(filter){
|
||||
view.inject(list, {
|
||||
id: 'portal-jobs',
|
||||
mode: 'edit',
|
||||
@ -45,8 +45,10 @@ export function PortalModeJobsController($scope, $rootScope, GetBasePath, Genera
|
||||
pageSize: pageSize
|
||||
});
|
||||
$scope.search (list.iterator);
|
||||
// hack to default to descending sort order
|
||||
$scope.sort('job','finished');
|
||||
if(filter) {
|
||||
// hack to default to descending sort order
|
||||
$scope.sort('job','finished');
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@ -67,7 +69,7 @@ export function PortalModeJobsController($scope, $rootScope, GetBasePath, Genera
|
||||
$scope.search(list.iterator);
|
||||
};
|
||||
|
||||
init();
|
||||
init(true);
|
||||
}
|
||||
|
||||
PortalModeJobsController.$inject = ['$scope', '$rootScope', 'GetBasePath', 'generateList', 'PortalJobsList', 'SearchInit',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user