mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03: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:
commit
9f01338c17
@ -69,6 +69,11 @@ export default
|
||||
ngModel: 'source'
|
||||
},
|
||||
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',
|
||||
type: 'lookup',
|
||||
list: 'CredentialList',
|
||||
|
||||
@ -31,9 +31,10 @@ export default ['$state', '$stateParams', '$scope', 'GroupForm', 'CredentialList
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: $scope.source.value,
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
|
||||
@ -58,9 +58,10 @@ export default ['$state', '$stateParams', '$scope', 'ToggleNotification', 'Parse
|
||||
};
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: $scope.source.value,
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user