mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 09:29:07 +01:00
Update account deletion to work with Turbo
This commit is contained in:
parent
42a34bced4
commit
674fc04a8b
1 changed files with 2 additions and 3 deletions
|
@ -17,8 +17,7 @@
|
|||
= t("voc.save")
|
||||
|
||||
%hr/
|
||||
%p
|
||||
= t(".delete.heading")
|
||||
= button_to t(".delete.action"), "/settings/account", data: { confirm: t(".delete.confirm") }, method: :delete, class: "btn btn-danger btn-xs"
|
||||
%p= t(".delete.heading")
|
||||
%p= link_to t(".delete.action"), "/settings/account", data: { turbo_confirm: t(".delete.confirm"), turbo_method: :delete }, class: "btn btn-danger btn-xs"
|
||||
|
||||
.visible-xs= render "shared/links"
|
||||
|
|
Loading…
Reference in a new issue