mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-17 08:36:11 +02:00
Display advanced options on owned plugins' form
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
dbc4ef2071
commit
fee08df5fa
@ -90,6 +90,7 @@ const OwnedPluginForm = {
|
||||
}
|
||||
}).then((data) => {
|
||||
this.commonOptions = data.commonOptions;
|
||||
this.advancedOptions = data.advancedOptions;
|
||||
let foundExpression = false;
|
||||
let foundTimeFormat = false;
|
||||
_.each(this.commonOptions, (option) => {
|
||||
|
||||
@ -19,10 +19,22 @@
|
||||
"v-bind:plugin-type" => "pluginType",
|
||||
"v-bind:common-options" => "commonOptions",
|
||||
"v-on:change-formats" => "onChangeFormats"}
|
||||
%template(v-else){"v-for" => "option in commonOptions"}
|
||||
%config-field{"v-bind:plugin-type" => "pluginType",
|
||||
%template(v-else)
|
||||
%config-field{"v-for" => "option in commonOptions",
|
||||
"v-bind:key" => "option.name",
|
||||
"v-bind:plugin-type" => "pluginType",
|
||||
"v-bind:option" => "option",
|
||||
"v-bind:initial-expression" => "expression",
|
||||
"v-bind:initial-time-format" => "timeFormat",
|
||||
"v-bind:initial-text-value" => "initialParams[option.name]",
|
||||
"v-on:change-parse-config" => "onChangeParseConfig"}
|
||||
%template{"v-if" => '!_.isEmpty(advancedOptions)'}
|
||||
.card.card-body.bg-light
|
||||
%h4{"data-toggle" => "collapse", "href" => "#owned-plugin-advanced-setting"}
|
||||
= icon('fa-caret-down')
|
||||
= t('terms.advanced_setting')
|
||||
#owned-plugin-advanced-setting.collapse
|
||||
%config-field{"v-for" => "option in advancedOptions",
|
||||
"v-bind:key" => "option.name",
|
||||
"v-bind:plugin-type" => "pluginType",
|
||||
"v-bind:option" => "option"}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user