From 674fc04a8bb1dd267b65530daa828c2e32ed0a9c Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 4 Sep 2022 14:36:37 +0200 Subject: [PATCH] Update account deletion to work with Turbo --- app/views/settings/_account.haml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/settings/_account.haml b/app/views/settings/_account.haml index c234b9d5..29e578d8 100644 --- a/app/views/settings/_account.haml +++ b/app/views/settings/_account.haml @@ -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"