mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fixed the become hide of password on select option null for credentials
This commit is contained in:
parent
fa93c8bbd3
commit
b0f7df8fa9
@ -400,6 +400,10 @@ export function CredentialsEdit($scope, $rootScope, $compile, $location, $log, $
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($scope.become_method && $scope.become_method.value === "") {
|
||||
$scope.become_method = null;
|
||||
}
|
||||
master.become_method = $scope.become_method;
|
||||
|
||||
for (i = 0; i < $scope.credential_kind_options.length; i++) {
|
||||
|
||||
@ -220,6 +220,8 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
data.kind = scope.kind.value;
|
||||
if (scope.become_method === null) {
|
||||
data.become_method = "";
|
||||
data.become_username = "";
|
||||
data.become_password = "";
|
||||
} else {
|
||||
data.become_method = (scope.become_method.value) ? scope.become_method.value : "";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user