Change `excludeSystemComponent` to `includeSystemComponent`

https://github.com/rancher/rancher/issues/18026
This commit is contained in:
loganhz 2019-02-13 07:12:09 +08:00
parent 822c082177
commit 3f7167e24e
4 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,7 @@ export default Mixin.create({
[`${ t }.outputFlushInterval`]: get(this, `outputFlushInterval`),
[`${ t }.outputTags`]: get(this, `outputTags`),
[`${ t }.dockerRootDir`]: get(this, 'dockerRootDir'),
[`${ t }.excludeSystemComponent`]: get(this, 'excludeSystemComponent'),
[`${ t }.includeSystemComponent`]: get(this, 'includeSystemComponent'),
})
}

View File

@ -32,8 +32,8 @@
{{/if}}
<div class="row">
{{input type="checkbox" classNames="form-control" checked=model.excludeSystemComponent}}
{{t 'loggingPage.additional.excludeSystemComponent.label'}}
{{input type="checkbox" classNames="form-control" checked=model.includeSystemComponent}}
{{t 'loggingPage.additional.includeSystemComponent.label'}}
</div>
</section>
</div>

View File

@ -261,14 +261,14 @@ export default Component.extend(NewOrEdit, {
})
const {
outputFlushInterval, outputTags, dockerRoot, excludeSystemComponent
outputFlushInterval, outputTags, dockerRoot, includeSystemComponent
} = get(this, 'model.customTarget');
setProperties(model, {
outputFlushInterval,
outputTags,
dockerRoot,
excludeSystemComponent,
includeSystemComponent,
})
} else {
if (targetType === 'fluentForwarder') {
@ -313,7 +313,7 @@ export default Component.extend(NewOrEdit, {
outputTags: get(model, `${ targetType }.outputTags`),
dockerRoot: get(model, `${ targetType }.dockerRoot`),
[`${ targetType }Config`]: formatConfig,
excludeSystemComponent: get(model, `${ targetType }.excludeSystemComponent`),
includeSystemComponent: get(model, `${ targetType }.includeSystemComponent`),
})
if (targetType === 'elasticsearch') {

View File

@ -48,7 +48,7 @@ loggingPage:
placeholder: e.g. 1
sec: sec
helpText: How often buffered logs would be flushed.
excludeSystemComponent:
includeSystemComponent:
label: Include System Log
advanced:
file: Edit as File