From e3f393ab21398f53ed020596e5fa72c4301075b6 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Thu, 4 Oct 2018 15:41:10 +0900 Subject: [PATCH] Use b-collapse Signed-off-by: Kenji Okimoto --- app/views/shared/settings/_form.html.haml | 4 ++-- app/views/shared/vue/_owned_plugin_form.html.haml | 4 ++-- app/views/shared/vue/_parser_plugin_form.html.haml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/shared/settings/_form.html.haml b/app/views/shared/settings/_form.html.haml index 385bf41..a4c4b1e 100644 --- a/app/views/shared/settings/_form.html.haml +++ b/app/views/shared/settings/_form.html.haml @@ -44,10 +44,10 @@ - if setting.advanced_options.present? .card.card-body.bg-light - %h4{"data-toggle" => "collapse", "href" => "#advanced-setting"} + %h4{"v-b-toggle" => "'advanced-setting'"} = icon('fa-caret-down') = t('terms.advanced_setting') - #advanced-setting.collapse + %b-collapse{"id" => "advanced-setting"} - setting.advanced_options.each do |key| = form.field(key) diff --git a/app/views/shared/vue/_owned_plugin_form.html.haml b/app/views/shared/vue/_owned_plugin_form.html.haml index 2bcaab6..0a818d0 100644 --- a/app/views/shared/vue/_owned_plugin_form.html.haml +++ b/app/views/shared/vue/_owned_plugin_form.html.haml @@ -21,10 +21,10 @@ "v-bind:option" => "option"} %template{"v-if" => '!_.isEmpty(advancedOptions)'} .card.card-body.bg-light - %h4{"data-toggle" => "collapse", "href" => "#owned-plugin-advanced-setting"} + %h4{"v-b-toggle" => "`${id}-advanced-setting`"} = icon('fa-caret-down') = t('terms.advanced_setting') - #owned-plugin-advanced-setting.collapse + %b-collapse{"v-bind:id" => "`${id}-advanced-setting`"} %config-field{"v-for" => "option in advancedOptions", "v-bind:key" => "option.name", "v-bind:plugin-type" => "pluginType", diff --git a/app/views/shared/vue/_parser_plugin_form.html.haml b/app/views/shared/vue/_parser_plugin_form.html.haml index f121ac9..73289c6 100644 --- a/app/views/shared/vue/_parser_plugin_form.html.haml +++ b/app/views/shared/vue/_parser_plugin_form.html.haml @@ -28,10 +28,10 @@ "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"} + %h4{"v-b-toggle" => '"parser-section-advanced-setting"'} = icon('fa-caret-down') = t('terms.advanced_setting') - #owned-plugin-advanced-setting.collapse + %b-collapse{"id" => "parser-section-advanced-setting"} %config-field{"v-for" => "option in advancedOptions", "v-bind:key" => "option.name", "v-bind:plugin-type" => "pluginType",