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