mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Set logUrl
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
a566c2d4e2
commit
ab40e4734c
@ -2,7 +2,7 @@
|
||||
$(document).ready(()=> {
|
||||
new Vue({
|
||||
el: "#fluent-log",
|
||||
paramAttributes: ["logUrl", "initialAutoReload"],
|
||||
props: ["logUrl", "initialAutoReload"],
|
||||
data: {
|
||||
"autoFetch": false,
|
||||
"logs": [],
|
||||
@ -10,6 +10,11 @@ $(document).ready(()=> {
|
||||
"processing": false
|
||||
},
|
||||
|
||||
beforeMount: function() {
|
||||
this.logUrl = this.$el.attributes.logUrl.nodeValue;
|
||||
this.initialAutoReload = this.$el.attributes.initialAutoReload.nodeValue;
|
||||
},
|
||||
|
||||
mounted: function(){
|
||||
this.fetchLogs();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user