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:
commit
426ec28b19
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user