mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
default playbook for scan job template
when creating a scan job template via the inventory detail page`
This commit is contained in:
@@ -257,7 +257,9 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
|
|||||||
master = {},
|
master = {},
|
||||||
CloudCredentialList = {},
|
CloudCredentialList = {},
|
||||||
selectPlaybook, checkSCMStatus,
|
selectPlaybook, checkSCMStatus,
|
||||||
callback;
|
callback,
|
||||||
|
base = $location.path().replace(/^\//, '').split('/')[0],
|
||||||
|
context = (base === 'job_templates') ? 'job_template' : 'inv';
|
||||||
|
|
||||||
CallbackHelpInit({ scope: $scope });
|
CallbackHelpInit({ scope: $scope });
|
||||||
$scope.can_edit = true;
|
$scope.can_edit = true;
|
||||||
@@ -491,7 +493,8 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $
|
|||||||
current_item: null,
|
current_item: null,
|
||||||
list: ProjectList,
|
list: ProjectList,
|
||||||
field: 'project',
|
field: 'project',
|
||||||
input_type: "radio"
|
input_type: "radio",
|
||||||
|
autopopulateLookup: (context === 'inv') ? false : true
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($scope.removeSurveySaved) {
|
if ($scope.removeSurveySaved) {
|
||||||
|
|||||||
Reference in New Issue
Block a user