mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Update theme deletion to work with Turbo
This commit is contained in:
parent
674fc04a8b
commit
4b4deecf9c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue