From 3bf166387cbf19ade2786141cbf6eaf3ce5991b8 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Fri, 14 Sep 2018 12:39:35 +0900 Subject: [PATCH] Set label Signed-off-by: Kenji Okimoto --- app/javascript/packs/settings.js | 1 + app/views/fluentd/settings/source_and_output.html.haml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/javascript/packs/settings.js b/app/javascript/packs/settings.js index 2c9c687..43d430d 100644 --- a/app/javascript/packs/settings.js +++ b/app/javascript/packs/settings.js @@ -7,6 +7,7 @@ $(document).ready(() => { const SettingSection = { template: "#vue-setting-section", props: [ + "label", "initialId", "initialContent", "initialType", diff --git a/app/views/fluentd/settings/source_and_output.html.haml b/app/views/fluentd/settings/source_and_output.html.haml index c0a8f17..44fce6c 100644 --- a/app/views/fluentd/settings/source_and_output.html.haml +++ b/app/views/fluentd/settings/source_and_output.html.haml @@ -61,6 +61,7 @@ %setting-section{"v-if" => "loaded && elements.sources && elements.sources.length > 0", "v-for" => "source in elements.sources", "v-bind:key" => "source.id", + "v-bind:label" => "source.current_label", "v-bind:initial-id" => "source.id", "v-bind:initial-content" => "source.content", "v-bind:initial-type" => "source.type", @@ -73,6 +74,7 @@ %setting-section{"v-if" => "loaded && elements.filters.length > 0", "v-for" => "filter in elements.filters", "v-bind:key" => "filter.id", + "v-bind:label" => "filter.current_label", "v-bind:initial-id" => "filter.id", "v-bind:initial-content" => "filter.content", "v-bind:initial-type" => "filter.type", @@ -86,6 +88,7 @@ %setting-section{"v-if" => "loaded && elements.matches.length > 0", "v-for" => "match in elements.matches", "v-bind:key" => "match.id", + "v-bind:label" => "match.current_label", "v-bind:initial-id" => "match.id", "v-bind:initial-content" => "match.content", "v-bind:initial-type" => "match.type",