1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #7089 from jlmitch5/newLoggingCtitFields

add level and verify toggle to ctit form in ui
This commit is contained in:
jlmitch5 2017-07-17 16:49:06 -04:00 committed by GitHub
commit 426ec28b19
2 changed files with 16 additions and 1 deletions

View File

@ -175,6 +175,10 @@ export default [
$scope.$parent.LOG_AGGREGATOR_PROTOCOL = _.find($scope.$parent.LOG_AGGREGATOR_PROTOCOL_options, { value: $scope.$parent.LOG_AGGREGATOR_PROTOCOL });
}
if($scope.$parent.LOG_AGGREGATOR_LEVEL !== null) {
$scope.$parent.LOG_AGGREGATOR_LEVEL = _.find($scope.$parent.LOG_AGGREGATOR_LEVEL_options, { value: $scope.$parent.LOG_AGGREGATOR_LEVEL });
}
if(flag !== undefined){
dropdownRendered = flag;
}
@ -188,6 +192,7 @@ export default [
});
$scope.$parent.configuration_logging_template_form.LOG_AGGREGATOR_TYPE.$setPristine();
$scope.$parent.configuration_logging_template_form.LOG_AGGREGATOR_PROTOCOL.$setPristine();
$scope.$parent.configuration_logging_template_form.LOG_AGGREGATOR_LEVEL.$setPristine();
}
}

View File

@ -43,7 +43,8 @@
LOG_AGGREGATOR_PROTOCOL: {
type: 'select',
reset: 'LOG_AGGREGATOR_PROTOCOL',
ngOptions: 'type.label for type in LOG_AGGREGATOR_PROTOCOL_options track by type.value'
ngOptions: 'type.label for type in LOG_AGGREGATOR_PROTOCOL_options track by type.value',
disableChooseOption: true
},
LOG_AGGREGATOR_TCP_TIMEOUT: {
type: 'text',
@ -53,6 +54,15 @@
reqExpression: "LOG_AGGREGATOR_PROTOCOL.value === 'tcp' || LOG_AGGREGATOR_PROTOCOL.value === 'https'",
init: "false"
},
},
LOG_AGGREGATOR_LEVEL: {
type: 'select',
reset: 'LOG_AGGREGATOR_LEVEL',
ngOptions: 'type.label for type in LOG_AGGREGATOR_LEVEL_options track by type.value',
disableChooseOption: true
},
LOG_AGGREGATOR_VERIFY_CERT: {
type: 'toggleSwitch'
}
},