Skip to content

Commit fede81a

Browse files
committed
Turbo off by default
1 parent 74953a9 commit fede81a

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

app/javascript/application.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
import "@hotwired/turbo-rails"
33
import "controllers"
44

5+
// Change to true to allow Turbo
6+
Turbo.session.drive = false
7+
8+
// Allow UJS alongside Turbo
59
import jquery from "jquery";
610
window.jQuery = jquery;
711
window.$ = jquery;

app/views/comments/_comment.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="flex-grow-1 ms-3">
77
<div class="d-flex align-items-center justify-content-between">
88
<h5 class="mt-0">
9-
<%= link_to comment.author.username, user_path(comment.author.username), class: "text-dark link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover", data: { turbo: false } %>
9+
<%= link_to comment.author.username, user_path(comment.author.username), class: "text-dark link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover" %>
1010
</h5>
1111

1212
<div>

app/views/photos/_photo.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h2 class="h5 m-0 p-0 d-flex align-items-center">
66
<%= image_tag photo.owner.avatar_image_url, class: "rounded-circle me-2 img-cover img-small" %>
77

8-
<%= link_to photo.owner.username, user_path(photo.owner.username), class: "text-dark link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover", data: { turbo: false } %>
8+
<%= link_to photo.owner.username, user_path(photo.owner.username), class: "text-dark link-underline-dark link-underline-opacity-0 link-underline-opacity-100-hover" %>
99
</h2>
1010

1111
<div>

app/views/users/_connected_users_modal.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ul class="list-group list-group-flush">
1717
<% connected_users.each do |other_user| %>
1818
<li class="list-group-item">
19-
<%= link_to other_user.username, user_path(other_user.username), data: { turbo: false } %>
19+
<%= link_to other_user.username, user_path(other_user.username) %>
2020
</li>
2121
<% end %>
2222
</ul>

app/views/users/shared/_links.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020

2121
<%- if devise_mapping.omniauthable? %>
2222
<%- resource_class.omniauth_providers.each do |provider| %>
23-
<%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false } %><br />
23+
<%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br />
2424
<% end %>
2525
<% end %>

0 commit comments

Comments
 (0)