Update theme deletion to work with Turbo

This commit is contained in:
Andreas Nedbal 2022-09-04 14:52:11 +02:00 committed by Andreas Nedbal
parent 674fc04a8b
commit 4b4deecf9c
1 changed files with 1 additions and 1 deletions

View File

@ -6,8 +6,8 @@
- if current_user.theme
.pull-right
= button_to t(".delete"), settings_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger"
= bootstrap_form_for(current_user.theme || Theme.new, html: { id: "update" }, method: :patch) do |f|
= link_to t(".delete"), settings_theme_path, data: { turbo_confirm: t("voc.confirm"), turbo_method: :delete }, tabindex: -1, class: "btn btn-danger"
.card
.card-body
%h2= t(".general.heading")