mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
fix jobs sort
This commit is contained in:
@@ -66,7 +66,7 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $statePa
|
|||||||
scope: jobs_scope,
|
scope: jobs_scope,
|
||||||
list: AllJobsList,
|
list: AllJobsList,
|
||||||
id: 'active-jobs',
|
id: 'active-jobs',
|
||||||
url: GetBasePath('unified_jobs') + '?status__in=pending,waiting,running,completed,failed,successful,error,canceled',
|
url: GetBasePath('unified_jobs') + '?status__in=pending,waiting,running,completed,failed,successful,error,canceled&order_by=-finished',
|
||||||
searchParams: search_params,
|
searchParams: search_params,
|
||||||
spinner: false
|
spinner: false
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -302,6 +302,7 @@ export default
|
|||||||
url += connect + scope[iterator + 'ExtraParms'];
|
url += connect + scope[iterator + 'ExtraParms'];
|
||||||
}
|
}
|
||||||
url = url.replace(/\&\&/g, '&').replace(/\?\&/,'?');
|
url = url.replace(/\&\&/g, '&').replace(/\?\&/,'?');
|
||||||
|
|
||||||
if (calcOnly) {
|
if (calcOnly) {
|
||||||
scope.$emit('searchParamsReady', url);
|
scope.$emit('searchParamsReady', url);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,6 @@ export default
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
id: {
|
id: {
|
||||||
key: true,
|
|
||||||
desc: true,
|
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
ngClick:"viewJobDetails(all_job)",
|
ngClick:"viewJobDetails(all_job)",
|
||||||
searchType: 'int',
|
searchType: 'int',
|
||||||
|
|||||||
Reference in New Issue
Block a user