mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 14:09:28 -02:30
added scan job type to job type dropdown
on the job template form.
This commit is contained in:
@@ -276,7 +276,8 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
|
|||||||
|
|
||||||
$scope.job_type_options = [
|
$scope.job_type_options = [
|
||||||
{ value: 'run', label: 'Run' },
|
{ value: 'run', label: 'Run' },
|
||||||
{ value: 'check', label: 'Check' }
|
{ value: 'check', label: 'Check' },
|
||||||
|
{ value: 'scan' , label: 'Scan'}
|
||||||
];
|
];
|
||||||
|
|
||||||
$scope.verbosity_options = [
|
$scope.verbosity_options = [
|
||||||
@@ -340,6 +341,10 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
|
|||||||
parent_scope: $scope
|
parent_scope: $scope
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// $scope.jobTypeChange = function(){
|
||||||
|
//
|
||||||
|
// };
|
||||||
|
|
||||||
// Update playbook select whenever project value changes
|
// Update playbook select whenever project value changes
|
||||||
selectPlaybook = function (oldValue, newValue) {
|
selectPlaybook = function (oldValue, newValue) {
|
||||||
var url;
|
var url;
|
||||||
@@ -591,7 +596,8 @@ export function JobTemplatesEdit($scope, $rootScope, $compile, $location, $log,
|
|||||||
// Our job type options
|
// Our job type options
|
||||||
$scope.job_type_options = [
|
$scope.job_type_options = [
|
||||||
{ value: 'run', label: 'Run' },
|
{ value: 'run', label: 'Run' },
|
||||||
{ value: 'check', label: 'Check' }
|
{ value: 'check', label: 'Check' },
|
||||||
|
{ value: 'scan', label: 'Scan'}
|
||||||
];
|
];
|
||||||
|
|
||||||
$scope.verbosity_options = [
|
$scope.verbosity_options = [
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ export default
|
|||||||
label: 'Job Type',
|
label: 'Job Type',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
ngOptions: 'type.label for type in job_type_options track by type.value',
|
ngOptions: 'type.label for type in job_type_options track by type.value',
|
||||||
|
ngChange: 'jobTypeChange()',
|
||||||
"default": 0,
|
"default": 0,
|
||||||
addRequired: true,
|
addRequired: true,
|
||||||
editRequired: true,
|
editRequired: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user