mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Expose credential when adding/editing custom source
This commit is contained in:
@@ -71,7 +71,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$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;
|
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||||
$state.go('.credential', {
|
$state.go('.credential', {
|
||||||
credential_search: {
|
credential_search: {
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.lookupCredential = function(){
|
$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;
|
let kind = ($scope.source.value === "ec2") ? "aws" : $scope.source.value;
|
||||||
$state.go('.credential', {
|
$state.go('.credential', {
|
||||||
credential_search: {
|
credential_search: {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ return {
|
|||||||
type: 'lookup',
|
type: 'lookup',
|
||||||
list: 'CredentialList',
|
list: 'CredentialList',
|
||||||
basePath: 'credentials',
|
basePath: 'credentials',
|
||||||
ngShow: "source && source.value !== '' && source.value !== 'custom'",
|
ngShow: "source && source.value !== ''",
|
||||||
sourceModel: 'credential',
|
sourceModel: 'credential',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
ngClick: 'lookupCredential()',
|
ngClick: 'lookupCredential()',
|
||||||
|
|||||||
Reference in New Issue
Block a user