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