mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-15 18:57:10 +02:00
Set default log lines by JS
This commit is contained in:
parent
66d364b4c0
commit
08d3d4aa0d
@ -9,7 +9,7 @@
|
||||
paramAttributes: ["logUrl"],
|
||||
data: {
|
||||
"logs": [],
|
||||
// limit: 30 (with v-model="limit" on shared/vue/_fluent_log)
|
||||
"limit": 30
|
||||
},
|
||||
|
||||
created: function(){
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- vue.js -->
|
||||
<div id="fluent-log" logUrl="<%= log_tail_fluentd_agent_path(fluentd) %>">
|
||||
<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 }}
|
||||
</span></div></pre>
|
||||
|
Loading…
Reference in New Issue
Block a user