mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-16 03:07:06 +02:00
Set default log lines by JS
This commit is contained in:
parent
66d364b4c0
commit
08d3d4aa0d
@ -9,7 +9,7 @@
|
|||||||
paramAttributes: ["logUrl"],
|
paramAttributes: ["logUrl"],
|
||||||
data: {
|
data: {
|
||||||
"logs": [],
|
"logs": [],
|
||||||
// limit: 30 (with v-model="limit" on shared/vue/_fluent_log)
|
"limit": 30
|
||||||
},
|
},
|
||||||
|
|
||||||
created: function(){
|
created: function(){
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!-- vue.js -->
|
<!-- vue.js -->
|
||||||
<div id="fluent-log" logUrl="<%= log_tail_fluentd_agent_path(fluentd) %>">
|
<div id="fluent-log" logUrl="<%= log_tail_fluentd_agent_path(fluentd) %>">
|
||||||
<pre>
|
<pre>
|
||||||
<button class="btn btn-primary" v-on="click: fetchLogs"><%= t "terms.reload_log" %></button> <input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" value="<%= Settings.default_log_tail_count %>" />
|
<button class="btn btn-primary" v-on="click: fetchLogs"><%= t "terms.reload_log" %></button> <input type="text" v-model="limit" size="4" v-on="keyup: fetchLogs | key enter" />
|
||||||
|
|
||||||
<div class="log"><span v-repeat="logs">{{ $value }}
|
<div class="log"><span v-repeat="logs">{{ $value }}
|
||||||
</span></div></pre>
|
</span></div></pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user