1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Added condition based off PR feedback

This commit is contained in:
Ken Hoes 2016-07-14 08:50:42 -04:00
parent 33bb3abd52
commit 906db7d75e

View File

@ -347,7 +347,7 @@ export default
ParseTypeChange({ scope: $scope, field_id: 'job_templates_variables', onChange: callback });
if(related_cloud_credential) {
if($scope.job_template_obj.summary_fields.cloud_credential.name && related_cloud_credential) {
$scope.$emit('cloudCredentialReady', $scope.job_template_obj.summary_fields.cloud_credential.name);
} else {
// No existing cloud credential