Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Use turbo frames for filtering/searching/pagination of records
Damian Legawiec7fa7ccd110bb
diff --git a/admin/app/views/spree/admin/admin_users/_admin_user.html.erb b/admin/app/views/spree/admin/admin_users/_admin_user.html.erbindex d5e5e0c4de..92a5cde094 100644--- a/admin/app/views/spree/admin/admin_users/_admin_user.html.erb+++ b/admin/app/views/spree/admin/admin_users/_admin_user.html.erb@@ -1,6 +1,6 @@<tr id="<%= spree_dom_id admin_user %>" class="cursor-pointer" data-controller="row-link"><td class="w-50" data-action="click->row-link#openLink">- <%= link_to spree.admin_admin_user_path(admin_user), data: { row_link_target: :link }, class: 'd-flex align-items-center' do %>+ <%= link_to spree.admin_admin_user_path(admin_user), data: { row_link_target: :link, turbo_frame: '_top' }, class: 'd-flex align-items-center' do %><%= render_avatar(admin_user, width: 48, height: 48, class: 'mr-3 avatar') %><div class="d-flex flex-column"><%= admin_user.name %>diff --git a/admin/app/views/spree/admin/gift_cards/index.html.erb b/admin/app/views/spree/admin/gift_cards/index.html.erbindex ef0f3f1ee4..cd9aa0a1d3 100644--- a/admin/app/views/spree/admin/gift_cards/index.html.erb+++ b/admin/app/views/spree/admin/gift_cards/index.html.erb@@ -35,7 +35,9 @@<%= render 'list' %><% end %><% else %>- <%= render 'filters' %>- <%= render 'list' %>+ <%= turbo_frame_tag "gift_cards", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %>+ <%= render 'filters' %>+ <%= render 'list' %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/option_types/_option_type.html.erb b/admin/app/views/spree/admin/option_types/_option_type.html.erbindex 73ca760b62..aada999284 100644--- a/admin/app/views/spree/admin/option_types/_option_type.html.erb+++ b/admin/app/views/spree/admin/option_types/_option_type.html.erb@@ -14,6 +14,6 @@<%= option_type.products.count %></td><td class="w-10 actions cursor-pointer">- <%= link_to_edit option_type, data: { row_link_target: :link } %>+ <%= link_to_edit option_type, data: { row_link_target: :link, turbo_frame: '_top' } %></td></tr>diff --git a/admin/app/views/spree/admin/orders/_list.html.erb b/admin/app/views/spree/admin/orders/_list.html.erbindex 09234870e2..fe0079ced5 100644--- a/admin/app/views/spree/admin/orders/_list.html.erb+++ b/admin/app/views/spree/admin/orders/_list.html.erb@@ -1,6 +1,6 @@<% if @orders.any? %><div class="table-responsive">- <table class="table position-relative" id="listing_orders">+ <table class="table" id="listing_orders"><thead><tr><th><%= I18n.t(:number, scope: 'activerecord.attributes.spree/order') %></th>diff --git a/admin/app/views/spree/admin/orders/index.html.erb b/admin/app/views/spree/admin/orders/index.html.erbindex 863864108e..b7ac1d5ea3 100644--- a/admin/app/views/spree/admin/orders/index.html.erb+++ b/admin/app/views/spree/admin/orders/index.html.erb@@ -18,8 +18,10 @@<%= render 'spree/admin/orders/list' %><% end %><% else %>- <%= render 'spree/admin/orders/filters' %>- <%= render 'spree/admin/orders/list' %>+ <%= turbo_frame_tag "orders", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %><%= render 'spree/admin/shared/export_modal', export_type: Spree::Exports::Orders %>+ <%= render 'spree/admin/orders/filters' %>+ <%= render 'spree/admin/orders/list' %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/pages/_page.html.erb b/admin/app/views/spree/admin/pages/_page.html.erbindex f793afae4d..f4704fbce2 100644--- a/admin/app/views/spree/admin/pages/_page.html.erb+++ b/admin/app/views/spree/admin/pages/_page.html.erb@@ -1,6 +1,6 @@<tr id="<%= dom_id page %>" data-controller="row-link" class="cursor-pointer"><td scope="row" data-action="click->row-link#openLink" class="w-60">- <%= link_to page.name, spree.edit_admin_theme_path(current_store.default_theme, page_id: page.id), data: { row_link_target: :link } %>+ <%= link_to page.name, spree.edit_admin_theme_path(current_store.default_theme, page_id: page.id), data: { row_link_target: :link, turbo_frame: '_top' } %></td><td data-action="click->row-link#openLink" class="w-15"><%= local_time_ago(page.created_at, class: 'with-tip') %>diff --git a/admin/app/views/spree/admin/payment_methods/_available_payment_method.html.erb b/admin/app/views/spree/admin/payment_methods/_available_payment_method.html.erbindex 3ab6464487..b846287889 100644--- a/admin/app/views/spree/admin/payment_methods/_available_payment_method.html.erb+++ b/admin/app/views/spree/admin/payment_methods/_available_payment_method.html.erb@@ -15,7 +15,7 @@</td><td class="actions w-30"><div class="d-flex justify-content-end">- <%= link_to_with_icon 'plus', Spree.t(:add), spree.new_admin_payment_method_path(payment_method: { type: payment_method.type }), class: 'btn btn-light btn-sm', data: { row_link_target: :link } %>+ <%= link_to_with_icon 'plus', Spree.t(:add), spree.new_admin_payment_method_path(payment_method: { type: payment_method.type }), class: 'btn btn-light btn-sm', data: { row_link_target: :link, turbo_frame: '_top' } %></div></td></tr>diff --git a/admin/app/views/spree/admin/payment_methods/_payment_method.html.erb b/admin/app/views/spree/admin/payment_methods/_payment_method.html.erbindex 4dcbc56d55..a214ffc69c 100644--- a/admin/app/views/spree/admin/payment_methods/_payment_method.html.erb+++ b/admin/app/views/spree/admin/payment_methods/_payment_method.html.erb@@ -33,6 +33,6 @@<% end %></td><td class="actions w-5">- <%= link_to_edit(payment_method, data: { row_link_target: :link }) %>+ <%= link_to_edit(payment_method, data: { row_link_target: :link, turbo_frame: '_top' }) %></td></tr>diff --git a/admin/app/views/spree/admin/post_categories/_post_category.html.erb b/admin/app/views/spree/admin/post_categories/_post_category.html.erbindex b9df18cd8c..51522df09d 100644--- a/admin/app/views/spree/admin/post_categories/_post_category.html.erb+++ b/admin/app/views/spree/admin/post_categories/_post_category.html.erb@@ -1,6 +1,6 @@<tr data-controller="row-link" id="<%= dom_id(post_category) %>"><td class="w-60 p-0">- <%= link_to post_category.title, spree.edit_admin_post_category_path(post_category), class: 'd-block w-100 h-100 px-3 py-2', data: { row_link_target: :link } %>+ <%= link_to post_category.title, spree.edit_admin_post_category_path(post_category), class: 'd-block w-100 h-100 px-3 py-2', data: { row_link_target: :link, turbo_frame: '_top' } %></td><td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= post_category.posts.count %></td><td class="w-10 cursor-pointer text-right" data-action="click->row-link#openLink">diff --git a/admin/app/views/spree/admin/posts/index.html.erb b/admin/app/views/spree/admin/posts/index.html.erbindex ee948b2775..2a8d2a7fe5 100644--- a/admin/app/views/spree/admin/posts/index.html.erb+++ b/admin/app/views/spree/admin/posts/index.html.erb@@ -7,26 +7,28 @@<%= render 'spree/admin/shared/posts_tabs' %><div class="card-lg">- <%= render "spree/admin/posts/filters" %>- <% if @collection.any? %>- <div class="table-responsive rounded-lg">- <table class="table">- <thead>- <tr>- <th><%= sort_link @search, :title, Spree.t(:title) %></th>- <th><%= Spree.t(:category) %></th>- <th><%= Spree.t(:author) %></th>- <th><%= sort_link @search, :published_at, Spree.t(:published_at) %></th>- <th></th>- </tr>- </thead>- <tbody>- <%= render collection: @collection, partial: "spree/admin/posts/post", cached: spree_base_cache_scope %>- </tbody>- </table>- </div>- <%= render "spree/admin/shared/index_table_options", collection: @collection %>- <% else %>- <%= render 'spree/admin/shared/no_resource_found' %>+ <%= turbo_frame_tag "posts", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %>+ <%= render "spree/admin/posts/filters" %>+ <% if @collection.any? %>+ <div class="table-responsive rounded-lg">+ <table class="table">+ <thead>+ <tr>+ <th><%= sort_link @search, :title, Spree.t(:title) %></th>+ <th><%= Spree.t(:category) %></th>+ <th><%= Spree.t(:author) %></th>+ <th><%= sort_link @search, :published_at, Spree.t(:published_at) %></th>+ <th></th>+ </tr>+ </thead>+ <tbody>+ <%= render collection: @collection, partial: "spree/admin/posts/post", cached: spree_base_cache_scope %>+ </tbody>+ </table>+ </div>+ <%= render "spree/admin/shared/index_table_options", collection: @collection %>+ <% else %>+ <%= render 'spree/admin/shared/no_resource_found' %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/products/_index_header.html.erb b/admin/app/views/spree/admin/products/_index_header.html.erbindex 6768c57fe4..d7c3646fd8 100644--- a/admin/app/views/spree/admin/products/_index_header.html.erb+++ b/admin/app/views/spree/admin/products/_index_header.html.erb@@ -3,5 +3,6 @@<% end %><% content_for :page_actions do %>+ <%= link_to_export_modal %><%= link_to_with_icon 'plus', Spree.t(:new_product), new_object_url, class: 'btn btn-primary' if can?(:create, Spree::Product) %><% end %>diff --git a/admin/app/views/spree/admin/products/index.html.erb b/admin/app/views/spree/admin/products/index.html.erbindex 263dcec46d..a39798b6c8 100644--- a/admin/app/views/spree/admin/products/index.html.erb+++ b/admin/app/views/spree/admin/products/index.html.erb@@ -7,9 +7,11 @@<%= render 'list' %><% end %><% else %>- <%= render 'filters' %>- <%= render 'list' %>+ <%= turbo_frame_tag "products", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %><%= render 'spree/admin/shared/export_modal', export_type: Spree::Exports::Products %>+ <%= render 'filters' %>+ <%= render 'list' %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/promotions/_promotion.html.erb b/admin/app/views/spree/admin/promotions/_promotion.html.erbindex 16b375a3e5..a3a6d0ecba 100644--- a/admin/app/views/spree/admin/promotions/_promotion.html.erb+++ b/admin/app/views/spree/admin/promotions/_promotion.html.erb@@ -1,6 +1,6 @@<tr id="<%= spree_dom_id promotion %>" data-controller="row-link">- <td class="w-20 p-0">- <%= link_to promotion.name, spree.admin_promotion_path(promotion), class: 'font-weight-bold d-block py-2 px-3 w-100 h-100', data: { row_link_target: :link } %>+ <td class="w-30 p-0">+ <%= link_to promotion.name, spree.admin_promotion_path(promotion), class: 'font-weight-bold d-block py-2 px-3 w-100 h-100', data: { row_link_target: :link, turbo_frame: '_top' } %></td><td class="w-20 cursor-pointer" data-action="click->row-link#openLink"><% if promotion.coupon_code? && promotion.code.present? %>@@ -28,7 +28,4 @@<td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= render 'spree/admin/promotions/status', promotion: promotion %></td>- <td class="actions w-10">- <%= link_to_with_icon 'edit', Spree.t(:edit), spree.admin_promotion_path(promotion), icon: 'pencil', class: 'btn btn-sm btn-light' %>- </td></tr>\ No newline at end of filediff --git a/admin/app/views/spree/admin/promotions/index.html.erb b/admin/app/views/spree/admin/promotions/index.html.erbindex 9f4ccd5e40..fb1bfbab96 100644--- a/admin/app/views/spree/admin/promotions/index.html.erb+++ b/admin/app/views/spree/admin/promotions/index.html.erb@@ -7,28 +7,29 @@<% end if can?(:create, Spree::Promotion) %><div class="card-lg">- <%= render 'filters' %>+ <%= turbo_frame_tag "promotions", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %>+ <%= render 'filters' %>- <% if @collection.any? %>- <div class="table-responsive">- <table class="table">- <thead>- <tr>- <th><%= Spree.t(:name) %></th>- <th><%= Spree.t(:code) %></th>- <th><%= Spree.t(:kind) %></th>- <th><%= Spree.t(:usage_limit) %></th>- <th><%= Spree.t(:status) %></th>- <th></th>- </tr>- </thead>- <tbody>- <%= render collection: @collection, partial: "spree/admin/promotions/promotion", cached: spree_base_cache_scope %>- </tbody>- </table>- </div>- <%= render "spree/admin/shared/index_table_options", collection: @collection %>- <% else %>- <%= render "spree/admin/shared/no_resource_found" %>+ <% if @collection.any? %>+ <div class="table-responsive">+ <table class="table">+ <thead>+ <tr>+ <th><%= Spree.t(:name) %></th>+ <th><%= Spree.t(:code) %></th>+ <th><%= Spree.t(:kind) %></th>+ <th><%= Spree.t(:usage_limit) %></th>+ <th><%= Spree.t(:status) %></th>+ </tr>+ </thead>+ <tbody>+ <%= render collection: @collection, partial: "spree/admin/promotions/promotion", cached: spree_base_cache_scope %>+ </tbody>+ </table>+ </div>+ <%= render "spree/admin/shared/index_table_options", collection: @collection %>+ <% else %>+ <%= render "spree/admin/shared/no_resource_found" %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/properties/_property.html.erb b/admin/app/views/spree/admin/properties/_property.html.erbindex 3da9cfda58..e927083f6e 100644--- a/admin/app/views/spree/admin/properties/_property.html.erb+++ b/admin/app/views/spree/admin/properties/_property.html.erb@@ -6,7 +6,7 @@<code><%= property.name %></code></td><td class="w-20 cursor-pointer" data-action="click->row-link#openLink">- <%= link_to property.presentation, spree.edit_admin_property_path(property), class: 'text-decoration-none d-flex align-items-center font-weight-bold text-dark', data: { row_link_target: :link } %>+ <%= link_to property.presentation, spree.edit_admin_property_path(property), class: 'text-decoration-none d-flex align-items-center font-weight-bold text-dark', data: { row_link_target: :link, turbo_frame: '_top' } %></td><td class="w-20 cursor-pointer" data-action="click->row-link#openLink"><span class="badge badge-light"><%= property.kind.humanize %></span>diff --git a/admin/app/views/spree/admin/refund_reasons/index.html.erb b/admin/app/views/spree/admin/refund_reasons/index.html.erbindex 3c6ec119f3..a7fa4338b2 100644--- a/admin/app/views/spree/admin/refund_reasons/index.html.erb+++ b/admin/app/views/spree/admin/refund_reasons/index.html.erb@@ -29,7 +29,7 @@<%= active_badge(refund_reason.mutable) %></td><td class="actions w-10" data-action="click->row-link#openLink">- <%= link_to_edit(refund_reason, no_text: true, data: { row_link_target: :link }) if can? :edit, refund_reason %>+ <%= link_to_edit(refund_reason, no_text: true, data: { row_link_target: :link, turbo_frame: '_top' }) if can? :edit, refund_reason %></td></tr><% end %>diff --git a/admin/app/views/spree/admin/reimbursement_types/index.html.erb b/admin/app/views/spree/admin/reimbursement_types/index.html.erbindex 211d720c64..40f1b6d58a 100644--- a/admin/app/views/spree/admin/reimbursement_types/index.html.erb+++ b/admin/app/views/spree/admin/reimbursement_types/index.html.erb@@ -33,7 +33,7 @@<%= active_badge(reimbursement_type.mutable) %></td><td class="actions w-10">- <%= link_to_edit reimbursement_type, no_text: true, data: { row_link_target: :link } if can?(:edit, reimbursement_type) %>+ <%= link_to_edit reimbursement_type, no_text: true, data: { row_link_target: :link, turbo_frame: '_top' } if can?(:edit, reimbursement_type) %></td></tr><% end %>diff --git a/admin/app/views/spree/admin/reports/index.html.erb b/admin/app/views/spree/admin/reports/index.html.erbindex d0e2af82ba..f696dad420 100644--- a/admin/app/views/spree/admin/reports/index.html.erb+++ b/admin/app/views/spree/admin/reports/index.html.erb@@ -18,7 +18,7 @@<%= Spree.t("report_names.#{report_type}") %></td><td class="text-right w-10">- <%= link_to Spree.t(:show_report), spree.new_admin_report_path(type: report_type), class: 'btn btn-light btn-sm', data: { row_link_target: :link } %>+ <%= link_to Spree.t(:show_report), spree.new_admin_report_path(type: report_type), class: 'btn btn-light btn-sm', data: { row_link_target: :link, turbo_frame: '_top' } %></td></tr><% end %>diff --git a/admin/app/views/spree/admin/return_authorization_reasons/index.html.erb b/admin/app/views/spree/admin/return_authorization_reasons/index.html.erbindex de638ca74b..71ebc1d5ab 100644--- a/admin/app/views/spree/admin/return_authorization_reasons/index.html.erb+++ b/admin/app/views/spree/admin/return_authorization_reasons/index.html.erb@@ -30,7 +30,7 @@<td class="actions w-10"><% if return_authorization_reason.mutable? %><%= if can? :edit, return_authorization_reason- link_to_edit(return_authorization_reason, no_text: true, data: { row_link_target: :link })+ link_to_edit(return_authorization_reason, no_text: true, data: { row_link_target: :link, turbo_frame: '_top' })end %><% end %></td>diff --git a/admin/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb b/admin/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erbindex 06a4656f9b..439803e4d0 100644--- a/admin/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb+++ b/admin/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb@@ -27,7 +27,7 @@</div><div class="d-flex align-items-center px-3 ml-3 gap-2">- <%= link_to_edit(taxon, url: spree.edit_admin_taxonomy_taxon_path(taxonomy, taxon.id), data: { row_link_target: :link }) if can?(:edit, taxon) %>+ <%= link_to_edit(taxon, url: spree.edit_admin_taxonomy_taxon_path(taxonomy, taxon.id), data: { row_link_target: :link, turbo_frame: '_top' }) if can?(:edit, taxon) %><div class="dropdown h-100"><button class="btn btn-light btn-sm px-1 h-100" type="button" id="dropdownMenuButton-<%= taxon.id %>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">diff --git a/admin/app/views/spree/admin/shipping_categories/index.html.erb b/admin/app/views/spree/admin/shipping_categories/index.html.erbindex 8815a6f60c..7452e81076 100644--- a/admin/app/views/spree/admin/shipping_categories/index.html.erb+++ b/admin/app/views/spree/admin/shipping_categories/index.html.erb@@ -24,7 +24,7 @@<td data-action="click->row-link#openLink"><%= shipping_category.name %></td><td class="actions"><span class="d-flex justify-content-end">- <%= link_to_edit(shipping_category, data: { row_link_target: :link }) if can? :edit, shipping_category %>+ <%= link_to_edit(shipping_category, data: { row_link_target: :link, turbo_frame: '_top' }) if can? :edit, shipping_category %></span></td></tr>diff --git a/admin/app/views/spree/admin/shipping_methods/_shipping_method.html.erb b/admin/app/views/spree/admin/shipping_methods/_shipping_method.html.erbindex aa0705eae4..21a98c562a 100644--- a/admin/app/views/spree/admin/shipping_methods/_shipping_method.html.erb+++ b/admin/app/views/spree/admin/shipping_methods/_shipping_method.html.erb@@ -28,6 +28,6 @@<% end %></td><td class="actions w-10">- <%= link_to_edit(shipping_method, data: { row_link_target: :link }) if can? :edit, shipping_method %>+ <%= link_to_edit(shipping_method, data: { row_link_target: :link, turbo_frame: '_top' }) if can? :edit, shipping_method %></td></tr>diff --git a/admin/app/views/spree/admin/stock_items/_stock_item.html.erb b/admin/app/views/spree/admin/stock_items/_stock_item.html.erbindex 59cbc9c067..c68497c799 100644--- a/admin/app/views/spree/admin/stock_items/_stock_item.html.erb+++ b/admin/app/views/spree/admin/stock_items/_stock_item.html.erb@@ -4,7 +4,7 @@</td><td class="w-20"><% if can?(:manage, stock_item.stock_location) %>- <%= link_to stock_item.stock_location.display_name, spree.edit_admin_stock_location_path(stock_item.stock_location) %>+ <%= link_to stock_item.stock_location.display_name, spree.edit_admin_stock_location_path(stock_item.stock_location), data: { turbo_frame: '_top' } %><% else %><%= stock_item.stock_location.display_name %><% end %>diff --git a/admin/app/views/spree/admin/stock_items/index.html.erb b/admin/app/views/spree/admin/stock_items/index.html.erbindex e4f1d20dea..2c59411289 100644--- a/admin/app/views/spree/admin/stock_items/index.html.erb+++ b/admin/app/views/spree/admin/stock_items/index.html.erb@@ -7,29 +7,30 @@<% end %><div class="card-lg">- <%= render "filters" %>-- <% if @collection.any? %>- <div class="table-responsive">- <table class="table" id="listing_products">- <thead>- <tr>- <th scope="col"><%= Spree.t(:variant) %></th>- <th scope="col"><%= Spree.t(:stock_location) %></th>- <th scope="col" class="text-center">- <%= Spree.t(:backorderable) %>- <%= help_bubble(Spree.t(:continue_selling_when_out_of_stock)) %>- </th>- <th scope="col"><%= Spree.t(:count_on_hand) %></th>- </tr>- </thead>- <tbody>- <%= render collection: @collection, partial: "stock_item" %>- </tbody>- </table>- </div>- <%= render "spree/admin/shared/index_table_options", collection: @collection %>- <% else %>- <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil %>+ <%= turbo_frame_tag "stock_items", autoscroll: true, data: { autoscroll_behavior: :smooth, turbo_action: 'advance' } do %>+ <%= render "filters" %>+ <% if @collection.any? %>+ <div class="table-responsive">+ <table class="table" id="listing_products">+ <thead>+ <tr>+ <th scope="col"><%= Spree.t(:variant) %></th>+ <th scope="col"><%= Spree.t(:stock_location) %></th>+ <th scope="col" class="text-center">+ <%= Spree.t(:backorderable) %>+ <%= help_bubble(Spree.t(:continue_selling_when_out_of_stock)) %>+ </th>+ <th scope="col"><%= Spree.t(:count_on_hand) %></th>+ </tr>+ </thead>+ <tbody>+ <%= render collection: @collection, partial: "stock_item" %>+ </tbody>+ </table>+ </div>+ <%= render "spree/admin/shared/index_table_options", collection: @collection %>+ <% else %>+ <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil %>+ <% end %><% end %></div>diff --git a/admin/app/views/spree/admin/store_credits/_store_credit.html.erb b/admin/app/views/spree/admin/store_credits/_store_credit.html.erbindex d420c4ca7b..393756e006 100644--- a/admin/app/views/spree/admin/store_credits/_store_credit.html.erb+++ b/admin/app/views/spree/admin/store_credits/_store_credit.html.erb@@ -1,6 +1,6 @@<tr data-controller="row-link" id="<%= spree_dom_id(store_credit) %>"><td>- <%= link_to store_credit.display_amount.to_html, spree.admin_user_store_credit_path(@user, store_credit), data: { row_link_target: :link } %>+ <%= link_to store_credit.display_amount.to_html, spree.admin_user_store_credit_path(@user, store_credit), data: { row_link_target: :link, turbo_frame: '_top' } %></td><td class="cursor-pointer" data-action="click->row-link#openLink"><%= store_credit.display_amount_authorized.to_html %></td><td class="cursor-pointer" data-action="click->row-link#openLink"><%= store_credit.display_amount_used.to_html %></td>diff --git a/admin/app/views/spree/admin/tax_categories/_tax_category.html.erb b/admin/app/views/spree/admin/tax_categories/_tax_category.html.erbindex ae36b1232b..3c3734096e 100644--- a/admin/app/views/spree/admin/tax_categories/_tax_category.html.erb+++ b/admin/app/views/spree/admin/tax_categories/_tax_category.html.erb@@ -8,6 +8,6 @@<td class="w-40" data-action="click->row-link#openLink"><%= tax_category.description %></td><td class="w-10" data-action="click->row-link#openLink"><%= active_badge(tax_category.is_default?) %></td><td class="w-10 actions">- <%= link_to_edit(tax_category, data: { row_link_target: :link }) if can? :edit, tax_category %>+ <%= link_to_edit(tax_category, data: { row_link_target: :link, turbo_frame: '_top' }) if can? :edit, tax_category %></td></tr>diff --git a/admin/app/views/spree/admin/taxonomies/_taxonomy.html.erb b/admin/app/views/spree/admin/taxonomies/_taxonomy.html.erbindex 78ea0db7da..fd85ee3739 100644--- a/admin/app/views/spree/admin/taxonomies/_taxonomy.html.erb+++ b/admin/app/views/spree/admin/taxonomies/_taxonomy.html.erb@@ -3,7 +3,7 @@<%= icon('grip-vertical', class: 'rounded hover-gray p-2') %></td><td class="w-50 cursor-pointer py-0" data-action="click->row-link#openLink">- <%= link_to taxonomy.name, spree.admin_taxonomy_path(taxonomy), class: 'text-decoration-none d-flex align-items-center font-weight-bold text-dark', data: { row_link_target: :link } %>+ <%= link_to taxonomy.name, spree.admin_taxonomy_path(taxonomy), class: 'text-decoration-none d-flex align-items-center font-weight-bold text-dark', data: { row_link_target: :link, turbo_frame: '_top' } %></td><td class="w-30 cursor-pointer" data-action="click->row-link#openLink"><!-- We don't want to include the root taxon -->diff --git a/admin/app/views/spree/admin/zones/index.html.erb b/admin/app/views/spree/admin/zones/index.html.erbindex da275c2c08..1b231c76ac 100644--- a/admin/app/views/spree/admin/zones/index.html.erb+++ b/admin/app/views/spree/admin/zones/index.html.erb@@ -33,7 +33,7 @@<td class="w-40 text-muted text-wrap" data-action="click->row-link#openLink"><%= zone.description %></td><td class="w-10" data-action="click->row-link#openLink"><%= active_badge(zone.default_tax?) %></td><td class="w-10 actions">- <%= link_to_edit(zone, data: { row_link_target: :link }) if can? :edit, zone %>+ <%= link_to_edit(zone, data: { row_link_target: :link, turbo_frame: '_top' }) if can? :edit, zone %></td></tr><% end %>