Browse Source

Specify method and turbo method so that we also get a delete request

pull/246/head
baarkerlounger 4 years ago
parent
commit
74b1cd586c
  1. 2
      app/views/layouts/application.html.erb

2
app/views/layouts/application.html.erb

@ -46,7 +46,7 @@
component.navigation_item(text: 'Your logs', href: case_logs_path)
component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}")
component.navigation_item(text: 'Your account', href: user_path(current_user))
component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete} })
component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete}, method: :delete })
end
end
%>

Loading…
Cancel
Save