Set default log lines by JS

This commit is contained in:
uu59 2014-06-10 16:52:07 +09:00
parent 66d364b4c0
commit 08d3d4aa0d
2 changed files with 2 additions and 2 deletions

View File

@ -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(){

View File

@ -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>