mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Deep clone the PortalJobsList so that we don't modify the base config
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
export function PortalModeJobsController($scope, $rootScope, GetBasePath, GenerateList, PortalJobsList, SearchInit,
|
export function PortalModeJobsController($scope, $rootScope, GetBasePath, GenerateList, PortalJobsList, SearchInit,
|
||||||
PaginateInit){
|
PaginateInit){
|
||||||
|
|
||||||
var list = PortalJobsList,
|
var list = _.cloneDeep(PortalJobsList),
|
||||||
view = GenerateList,
|
view = GenerateList,
|
||||||
// show user jobs by default
|
// show user jobs by default
|
||||||
defaultUrl = GetBasePath('jobs') + '?created_by=' + $rootScope.current_user.id,
|
defaultUrl = GetBasePath('jobs') + '?created_by=' + $rootScope.current_user.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user