From 42a34bced46b1585f35172abd4828c34505e2d82 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 4 Sep 2022 14:36:14 +0200 Subject: [PATCH] Update logout link to work with Turbo --- app/views/navigation/dropdown/_profile.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/navigation/dropdown/_profile.haml b/app/views/navigation/dropdown/_profile.haml index c535a8eb..716decda 100644 --- a/app/views/navigation/dropdown/_profile.haml +++ b/app/views/navigation/dropdown/_profile.haml @@ -47,6 +47,6 @@ %i.fa.fa-fw.fa-flask = t(".feedback.features") .dropdown-divider - = button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do + = link_to destroy_user_session_path, data: { turbo_method: :delete }, class: "dropdown-item" do %i.fa.fa-fw.fa-sign-out = t("voc.logout")