mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Merge pull request #4608 from jaredevantabor/cloud-credential-lookup
fixing the lookup modal for the group form's credential lookup
This commit is contained in:
@@ -69,6 +69,11 @@ export default
|
|||||||
ngModel: 'source'
|
ngModel: 'source'
|
||||||
},
|
},
|
||||||
credential: {
|
credential: {
|
||||||
|
// initializes a default value for this search param
|
||||||
|
// search params with default values set will not generate user-interactable search tags
|
||||||
|
search: {
|
||||||
|
kind: null
|
||||||
|
},
|
||||||
label: 'Cloud Credential',
|
label: 'Cloud Credential',
|
||||||
type: 'lookup',
|
type: 'lookup',
|
||||||
list: 'CredentialList',
|
list: 'CredentialList',
|
||||||
|
|||||||
@@ -31,9 +31,10 @@ export default ['$state', '$stateParams', '$scope', 'GroupForm', 'CredentialList
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$scope.lookupCredential = function(){
|
||||||
|
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||||
$state.go('.credential', {
|
$state.go('.credential', {
|
||||||
credential_search: {
|
credential_search: {
|
||||||
kind: $scope.source.value,
|
kind: kind,
|
||||||
page_size: '5',
|
page_size: '5',
|
||||||
page: '1'
|
page: '1'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,9 +58,10 @@ export default ['$state', '$stateParams', '$scope', 'ToggleNotification', 'Parse
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$scope.lookupCredential = function(){
|
||||||
|
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||||
$state.go('.credential', {
|
$state.go('.credential', {
|
||||||
credential_search: {
|
credential_search: {
|
||||||
kind: $scope.source.value,
|
kind: kind,
|
||||||
page_size: '5',
|
page_size: '5',
|
||||||
page: '1'
|
page: '1'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user