forked from fixin.me/fixin.me
Disable Turbo in User forms/links
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<%= image_link_to t(".revert"), "incognito-off", revert_users_path %>
|
||||
<% else %>
|
||||
<%= image_button_to t(".sign_out"), "logout", destroy_user_session_path,
|
||||
method: :delete %>
|
||||
method: :delete, data: {turbo: false} %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= image_link_to_unless_current(t(:sign_in), "login", new_user_session_path) {} %>
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
|
||||
<div class="rightside buttongrid">
|
||||
<%= image_button_to t(".delete"), "account-remove-outline", user_registration_path,
|
||||
method: :delete, form_class: 'tools', onclick: {confirm: t(".confirm_delete")} %>
|
||||
form_class: 'tools', method: :delete, data: {turbo: false},
|
||||
onclick: {confirm: t(".confirm_delete")} %>
|
||||
</div>
|
||||
|
||||
<%= labelled_form_for resource, url: registration_path(resource),
|
||||
|
||||
Reference in New Issue
Block a user