mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-04 18:36:13 +02:00
Fix to use paramAttributes for initial value
This commit is contained in:
parent
133009a318
commit
53940dbe8b
@ -6,11 +6,10 @@
|
||||
|
||||
new Vue({
|
||||
el: "#treeview",
|
||||
paramAttributes: [],
|
||||
paramAttributes: ["initialPath"],
|
||||
data: {
|
||||
preview: "",
|
||||
path: "",
|
||||
initialPath: "/var/log",
|
||||
paths: []
|
||||
},
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<% action ||= "" %>
|
||||
<% submit_button ||= "" %>
|
||||
<%= form_tag(action, method: :post) do %>
|
||||
<div id="treeview">
|
||||
<div id="treeview" initialPath="/var/log">
|
||||
<input type="text" size="48" v-model="path" disabled />
|
||||
<input type="hidden" name="<%= name %>" v-model="path" />
|
||||
<div class="dirs">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user