mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
adding "admin_role" as a default query param for insights cred lookup
This commit is contained in:
parent
8980e70918
commit
140af9ea47
@ -743,6 +743,7 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
else if(field.sourceModel === "insights_credential"){
|
||||
params = {
|
||||
page_size: '5',
|
||||
role_level: 'admin_role',
|
||||
credential_type: null
|
||||
};
|
||||
}
|
||||
@ -854,6 +855,7 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
$stateParams[`${list.iterator}_search`].organization = OrganizationId;
|
||||
}
|
||||
if(list.iterator === "insights_credential"){
|
||||
$stateParams[`${list.iterator}_search`].role_level = "admin_role";
|
||||
$stateParams[`${list.iterator}_search`].credential_type = InsightsCredTypePK.toString() ;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user