Update account deletion to work with Turbo

This commit is contained in:
Andreas Nedbal 2022-09-04 14:36:37 +02:00 committed by Andreas Nedbal
parent 42a34bced4
commit 674fc04a8b
1 changed files with 2 additions and 3 deletions

View File

@ -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"