mirror of https://github.com/rancher/ui.git
Merge pull request #1875 from n313893254/work
Fix Cluster Logging UI issues
This commit is contained in:
commit
aced1d1cda
|
|
@ -28,6 +28,8 @@
|
|||
<div class="col span-2">
|
||||
<label class="acc-label">
|
||||
<span class="pr-10"> {{radio-button selection=model._targetType value="normalEvent"}} {{t 'alertPage.newOrEdit.normal'}} </span>
|
||||
</label>
|
||||
<label class="acc-label">
|
||||
{{radio-button selection=model._targetType value="warningEvent"}} {{t 'alertPage.newOrEdit.warning'}}
|
||||
</label>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,10 @@ import { get } from '@ember/object';
|
|||
|
||||
export default Component.extend(es, {
|
||||
|
||||
didInsertElement() {
|
||||
this.$('#elasticsearch-endpoint').focus()
|
||||
},
|
||||
|
||||
indexFormat: function() {
|
||||
const ps = get(this, 'pageScope');
|
||||
return ps === 'cluster' ? '${clusterName}-${dateFormat}' : '${clusterName}_${projectName}-${dateFormat}';
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
value=config.endpoint
|
||||
classNames="form-control"
|
||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||
id="elasticsearch-endpoint"
|
||||
}}
|
||||
</div>
|
||||
<p class="text-info text-small">{{t 'loggingPage.elasticsearch.endpointHelpText'}}</p>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ export default Component.extend(es, {
|
|||
set(this, 'limitsCpu', limitsCpu / 1000);
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this.$('#embedded-cpuRequests').focus()
|
||||
},
|
||||
|
||||
requestsCpuChanged: function() {
|
||||
const requestsCpu = get(this, 'requestsCpu');
|
||||
set(this, 'config.requestsCpu', requestsCpu * 1000);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
value=requestsCpu
|
||||
className="form-control"
|
||||
placeholder=(t 'loggingPage.embedded.cpuRequests.placeholder')
|
||||
id="embedded-cpuRequests"
|
||||
}}
|
||||
<p class="text-small text-info">{{t 'loggingPage.embedded.cpuRequests.helpText'}}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ export default Component.extend({
|
|||
}
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this.$('#kafka-endpoint').focus()
|
||||
},
|
||||
|
||||
logPreview: function() {
|
||||
const str = get(this, 'fieldsStr');
|
||||
return `{
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
value=config.zookeeperEndpoint
|
||||
classNames="form-control"
|
||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||
id="kafka-endpoint"
|
||||
}}
|
||||
</div>
|
||||
<p class="text-info text-small mb-0">{{t 'loggingPage.kafka.zookeeperHelpText'}}</p>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@ import { alias } from '@ember/object/computed'
|
|||
export default Component.extend({
|
||||
config: alias('model.config'),
|
||||
|
||||
didInsertElement() {
|
||||
this.$('#splunk-endpoint').focus()
|
||||
},
|
||||
|
||||
logPreview: function() {
|
||||
const fieldsStr = get(this, 'fieldsStr');
|
||||
const template = `{
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
value=config.endpoint
|
||||
classNames="form-control"
|
||||
placeholder=(t 'loggingPage.endpointPlaceholder')
|
||||
id="splunk-endpoint"
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@ export default Component.extend({
|
|||
this.set('severities', SEVERITIES);
|
||||
},
|
||||
|
||||
didInsertElement() {
|
||||
this.$('#syslog-endpoint').focus()
|
||||
},
|
||||
|
||||
logPreview: function() {
|
||||
const str = get(this, 'fieldsStr');
|
||||
const program = get(this, 'config.program') || '';
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
value=config.endpoint
|
||||
classNames="form-control"
|
||||
placeholder=(t 'loggingPage.syslog.endpointPlaceholder')
|
||||
id="syslog-endpoint"
|
||||
}}
|
||||
<div class="input-group-btn bg-primary">
|
||||
<button
|
||||
|
|
|
|||
Loading…
Reference in New Issue