mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
Fix scm inv source credential lookup
This commit is contained in:
parent
e13f5bdebb
commit
78851213a3
@ -71,14 +71,25 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
if($scope.source.value !== "scm") {
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
credential_type__kind: "cloud",
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.lookupProject = function(){
|
||||
|
||||
@ -300,14 +300,25 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
};
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
if($scope.source.value !== "scm") {
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
kind: kind,
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
credential_type__kind: "cloud",
|
||||
page_size: '5',
|
||||
page: '1'
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.formCancel = function() {
|
||||
|
||||
@ -5,7 +5,8 @@ export default {
|
||||
page_size:"5",
|
||||
order_by:"name",
|
||||
role_level:"use_role",
|
||||
kind: null
|
||||
kind: null,
|
||||
credential_type__kind: null
|
||||
},
|
||||
dynamic:true,
|
||||
squash:""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user