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

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