mirror of https://github.com/rancher/ui.git
Merge pull request #2653 from n313893254/15555
Remove project level includeSystemComponent
This commit is contained in:
commit
3da77e916e
|
|
@ -1,10 +1,17 @@
|
||||||
import Component from '@ember/component';
|
import Component from '@ember/component';
|
||||||
|
import { inject as service } from '@ember/service';
|
||||||
|
import { observer } from '@ember/object';
|
||||||
|
import { reads } from '@ember/object/computed';
|
||||||
|
|
||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
|
scope: service(),
|
||||||
|
|
||||||
outputTagsChanged: function() {
|
pageScope: reads('scope.currentPageScope'),
|
||||||
|
|
||||||
|
outputTagsChanged: observer('model.outputTags', function() {
|
||||||
this.setCodeBlockHeight();
|
this.setCodeBlockHeight();
|
||||||
}.observes('model.outputTags'),
|
}),
|
||||||
|
|
||||||
setCodeBlockHeight() {
|
setCodeBlockHeight() {
|
||||||
const h = this.$('.additional-logging-configuration-content').height() + 12;
|
const h = this.$('.additional-logging-configuration-content').height() + 12;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,40 +1,42 @@
|
||||||
<main class="row mt-30">
|
<main class="row mt-30">
|
||||||
<h2 class="mt-0">{{t 'loggingPage.additional.header'}}</h2>
|
<h2 class="mt-0">{{t "loggingPage.additional.header"}}</h2>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="col span-5">
|
<div class="col span-5">
|
||||||
<section class="additional-logging-configuration-content">
|
<section class="additional-logging-configuration-content">
|
||||||
<label>{{t 'loggingPage.additional.fields.header'}}</label>
|
<label>{{t "loggingPage.additional.fields.header"}}</label>
|
||||||
<div class="mb-30">
|
<div class="mb-30">
|
||||||
<p class="text-info text-small">{{t 'loggingPage.additional.fields.helpText'}}</p>
|
<p class="text-info text-small">{{t "loggingPage.additional.fields.helpText"}}</p>
|
||||||
{{form-key-value
|
{{form-key-value
|
||||||
addActionLabel="loggingPage.tags.addActionLabel"
|
addActionLabel="loggingPage.tags.addActionLabel"
|
||||||
initialMap=model.outputTags
|
initialMap=model.outputTags
|
||||||
changed=(action (mut model.outputTags))
|
changed=(action (mut model.outputTags))
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
{{#if (not-eq targetType 'customTarget')}}
|
{{#if (not-eq targetType "customTarget")}}
|
||||||
<div class="row mb-30">
|
<div class="row mb-30">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<label class="acc-label">{{t 'loggingPage.additional.flushInterval.label'}}</label>
|
<label class="acc-label">{{t "loggingPage.additional.flushInterval.label"}}</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
{{input-integer
|
{{input-integer
|
||||||
min=1
|
min=1
|
||||||
value=model.outputFlushInterval
|
value=model.outputFlushInterval
|
||||||
class="form-control"
|
class="form-control"
|
||||||
placeholder=(t 'loggingPage.additional.flushInterval.placeholder')
|
placeholder=(t "loggingPage.additional.flushInterval.placeholder")
|
||||||
aria-describedby="basic-addon2"
|
aria-describedby="basic-addon2"
|
||||||
}}
|
}}
|
||||||
<span class="input-group-addon bg-default" id="basic-addon2">{{t 'loggingPage.additional.flushInterval.sec'}}</span>
|
<span class="input-group-addon bg-default" id="basic-addon2">{{t "loggingPage.additional.flushInterval.sec"}}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-info text-small mb-0">{{t 'loggingPage.additional.flushInterval.helpText'}}</p>
|
<p class="text-info text-small mb-0">{{t "loggingPage.additional.flushInterval.helpText"}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if (eq pageScope "cluster")}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{input type="checkbox" classNames="form-control" checked=model.includeSystemComponent}}
|
{{input type="checkbox" classNames="form-control" checked=model.includeSystemComponent}}
|
||||||
{{t 'loggingPage.additional.includeSystemComponent.label'}}
|
{{t "loggingPage.additional.includeSystemComponent.label"}}
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ loggingPage:
|
||||||
placeholder: '例如: 1'
|
placeholder: '例如: 1'
|
||||||
sec: 秒
|
sec: 秒
|
||||||
helpText: 日志刷新频率
|
helpText: 日志刷新频率
|
||||||
|
includeSystemComponent:
|
||||||
|
label: 包含系统日志
|
||||||
|
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
header: Elasticsearch配置
|
header: Elasticsearch配置
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue