mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
adding "admin_role" as a default query param for insights cred lookup
This commit is contained in:
@@ -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() ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user