Skip to content

Commit

Permalink
Copy project page not support turbo navigate yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo authored and oliverguenther committed Aug 27, 2024
1 parent 089158d commit 67b70e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/components/projects/row_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ def more_menu_copy_item
scheme: :default,
icon: :copy,
label: I18n.t(:button_copy),
href: copy_project_path(project)
href: copy_project_path(project),
data: { turbo: false }
}
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/projects/_toolbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ See COPYRIGHT and LICENSE files for more details.
</li>
<% if @project.copy_allowed? %>
<li class="toolbar-item hidden-for-tablet">
<%= link_to copy_project_path(@project), class: 'button copy', accesskey: accesskey(:copy) do %>
<%= link_to copy_project_path(@project), class: 'button copy', accesskey: accesskey(:copy), data: { turbo: false } do %>
<%= op_icon('button--icon icon-copy') %>
<span class="button--text"><%= t(:button_copy) %></span>
<% end %>
Expand Down

0 comments on commit 67b70e9

Please sign in to comment.