mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Expose credential when adding/editing custom source
This commit is contained in:
parent
78851213a3
commit
7d39f86d84
@ -71,7 +71,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
||||
}
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
if($scope.source.value !== "scm") {
|
||||
if($scope.source.value !== "scm" && $scope.source.value !== "custom") {
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
|
||||
@ -300,7 +300,7 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
};
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
if($scope.source.value !== "scm") {
|
||||
if($scope.source.value !== "scm" && $scope.source.value !== "custom") {
|
||||
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||
$state.go('.credential', {
|
||||
credential_search: {
|
||||
|
||||
@ -71,7 +71,7 @@ return {
|
||||
type: 'lookup',
|
||||
list: 'CredentialList',
|
||||
basePath: 'credentials',
|
||||
ngShow: "source && source.value !== '' && source.value !== 'custom'",
|
||||
ngShow: "source && source.value !== ''",
|
||||
sourceModel: 'credential',
|
||||
sourceField: 'name',
|
||||
ngClick: 'lookupCredential()',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user