mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 09:07:45 -02:30
Fixed scm type js error
This commit is contained in:
@@ -116,7 +116,6 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm',
|
||||
$scope.pathRequired = ($scope.scm_type.value === 'manual') ? true : false;
|
||||
$scope.scmRequired = ($scope.scm_type.value !== 'manual') ? true : false;
|
||||
$scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? 'Revision #' : 'SCM Branch';
|
||||
}
|
||||
|
||||
// Dynamically update popover values
|
||||
if ($scope.scm_type.value) {
|
||||
@@ -157,7 +156,7 @@ export default ['$scope', '$location', '$stateParams', 'GenerateForm',
|
||||
$scope.urlPopover = '<p> ' + i18n._('URL popover text') + '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
$scope.formCancel = function() {
|
||||
$state.go('projects');
|
||||
|
||||
@@ -248,7 +248,6 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest',
|
||||
$scope.pathRequired = ($scope.scm_type.value === 'manual') ? true : false;
|
||||
$scope.scmRequired = ($scope.scm_type.value !== 'manual') ? true : false;
|
||||
$scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? i18n._('Revision #') : i18n._('SCM Branch');
|
||||
}
|
||||
|
||||
// Dynamically update popover values
|
||||
if ($scope.scm_type.value) {
|
||||
@@ -287,6 +286,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest',
|
||||
$scope.urlPopover = '<p> ' + i18n._('URL popover text');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$scope.lookupCredential = function(){
|
||||
|
||||
Reference in New Issue
Block a user