mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 13:57:39 -02:30
made project autopopulate in permission form
This commit is contained in:
@@ -153,6 +153,22 @@ export function PermissionsAdd($scope, $rootScope, $compile, $location, $log, $r
|
|||||||
input_type: 'radio'
|
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 () {
|
$scope.changeAdhocCommandCheckbox = function () {
|
||||||
if ($scope.category === 'Deploy') {
|
if ($scope.category === 'Deploy') {
|
||||||
$scope.run_ad_hoc_command = false;
|
$scope.run_ad_hoc_command = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user