mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 22:48:02 -03:30
made project autopopulate in permission form
This commit is contained in:
parent
d56ab2b18b
commit
d9c5904f69
@ -153,6 +153,22 @@ export function PermissionsAdd($scope, $rootScope, $compile, $location, $log, $r
|
||||
input_type: 'radio'
|
||||
});
|
||||
|
||||
$scope.$watch("category", function(val) {
|
||||
if (val === 'Deploy') {
|
||||
$scope.projectrequired = true;
|
||||
LookUpInit({
|
||||
scope: $scope,
|
||||
form: form,
|
||||
current_item: null,
|
||||
list: ProjectList,
|
||||
field: 'project',
|
||||
input_type: 'radio'
|
||||
});
|
||||
} else {
|
||||
$scope.projectrequired = false;
|
||||
}
|
||||
});
|
||||
|
||||
$scope.changeAdhocCommandCheckbox = function () {
|
||||
if ($scope.category === 'Deploy') {
|
||||
$scope.run_ad_hoc_command = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user