Update logout link to work with Turbo

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

View File

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