mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Fix SCM credential list for Projects add and edit views
This commit is contained in:
parent
b344eb9af0
commit
6fee8c699d
@ -880,7 +880,11 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
$stateParams[`${list.iterator}_search`].role_level = "admin_role";
|
||||
$stateParams[`${list.iterator}_search`].credential_type = InsightsCredTypePK.toString() ;
|
||||
}
|
||||
|
||||
if(list.iterator === 'credential') {
|
||||
if($state.current.name.includes('projects.edit') || $state.current.name.includes('projects.add')) {
|
||||
state.params[`${list.iterator}_search`].value = _.merge(state.params[`${list.iterator}_search`].value, $stateParams[`${list.iterator}_search`]);
|
||||
}
|
||||
}
|
||||
|
||||
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user