mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Fixed host add form
This commit is contained in:
parent
047bcd92fe
commit
85ed1ce0be
@ -25,8 +25,8 @@ export default ['$state', '$stateParams', '$scope', 'RelatedHostsFormDefinition'
|
||||
|
||||
ParseTypeChange({
|
||||
scope: $scope,
|
||||
field_id: 'host_variables',
|
||||
variable: 'variables',
|
||||
field_id: 'host_host_variables',
|
||||
variable: 'host_variables',
|
||||
parse_variable: 'parseType'
|
||||
});
|
||||
}
|
||||
@ -40,7 +40,7 @@ export default ['$state', '$stateParams', '$scope', 'RelatedHostsFormDefinition'
|
||||
$scope.host.enabled = !$scope.host.enabled;
|
||||
};
|
||||
$scope.formSave = function(){
|
||||
var json_data = ToJSON($scope.parseType, $scope.variables, true),
|
||||
var json_data = ToJSON($scope.parseType, $scope.host_variables, true),
|
||||
params = {
|
||||
variables: json_data,// $scope.variables === '---' || $scope.variables === '{}' ? null : $scope.variables,
|
||||
name: $scope.name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user