Update account deletion to work with Turbo
This commit is contained in:
parent
42a34bced4
commit
674fc04a8b
|
@ -17,8 +17,7 @@
|
||||||
= t("voc.save")
|
= t("voc.save")
|
||||||
|
|
||||||
%hr/
|
%hr/
|
||||||
%p
|
%p= t(".delete.heading")
|
||||||
= 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"
|
||||||
= button_to t(".delete.action"), "/settings/account", data: { confirm: t(".delete.confirm") }, method: :delete, class: "btn btn-danger btn-xs"
|
|
||||||
|
|
||||||
.visible-xs= render "shared/links"
|
.visible-xs= render "shared/links"
|
||||||
|
|
Loading…
Reference in New Issue