Update account deletion to work with Turbo
This commit is contained in:
parent
42a34bced4
commit
674fc04a8b
|
@ -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 New Issue