From 9004da9bd159e66e4e6a58e5379502e24fffd80e Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 12 Oct 2022 08:58:22 +0200 Subject: [PATCH] Disable Turbo on Service Settings --- app/views/settings/_services.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/settings/_services.haml b/app/views/settings/_services.haml index 1252e936..d92b6a72 100644 --- a/app/views/settings/_services.haml +++ b/app/views/settings/_services.haml @@ -4,7 +4,8 @@ - APP_CONFIG["sharing"].each do |service, service_options| - if service_options["enabled"] && services.none? { |x| x.provider == service.to_s } - %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info" + %p= button_to t(".connect", service: service.capitalize), "/auth/#{service}", method: :post, class: "btn btn-info", + form: { data: { turbo: false } } - if services.count.positive? %ul.list-group @@ -18,9 +19,9 @@ data: { confirm: t(".confirm", service: service.provider.capitalize) }, method: :delete, class: "btn btn-link text-danger", - form: { class: "d-inline" } + form: { class: "d-inline", data: { turbo: false } } .col-md-6.mt-2 - = bootstrap_form_for(service, as: "service", url: update_service_path(service)) do |f| + = bootstrap_form_for(service, as: "service", url: update_service_path(service), data: { turbo: false }) do |f| = f.text_field :post_tag, label_as_placeholder: true, append: f.submit(t("voc.update"), class: "btn btn-primary"), maxlength: 20, pattern: "^[^@]*$"