mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Portal Jobs
adding correct query for a list of jobs that the current user ran.
This commit is contained in:
parent
9873bd2bc2
commit
8fb6e50e70
@ -20,6 +20,7 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
|
||||
listCount = 0,
|
||||
jobs_scope = scope.$new(true),
|
||||
max_rows,
|
||||
user,
|
||||
html, e;
|
||||
|
||||
html = '';
|
||||
@ -57,12 +58,13 @@ angular.module('PortalJobsWidget', ['RestServices', 'Utilities'])
|
||||
if (PortalJobsList.fields.type) {
|
||||
PortalJobsList.fields.type.searchOptions = scope.type_choices;
|
||||
}
|
||||
user = scope.$parent.current_user.id;
|
||||
LoadJobsScope({
|
||||
parent_scope: scope,
|
||||
scope: jobs_scope,
|
||||
list: PortalJobsList,
|
||||
id: 'active-jobs',
|
||||
url: GetBasePath('jobs'), //+ '?type__in=job' , //&status__in=running,completed,failed,successful,error,canceled',
|
||||
url: GetBasePath('jobs')+'?created_by='+user,
|
||||
pageSize: max_rows,
|
||||
spinner: true
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user