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")
%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"