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
Update all badges when shipping to improve UX (#14016)
Kacper Mękarski60e920a072a8
diff --git a/spree/admin/app/views/spree/admin/orders/_shipment.html.erb b/spree/admin/app/views/spree/admin/orders/_shipment.html.erbindex 4b9a64df29..68e3730fc1 100644--- a/spree/admin/app/views/spree/admin/orders/_shipment.html.erb+++ b/spree/admin/app/views/spree/admin/orders/_shipment.html.erb@@ -87,7 +87,7 @@<% if can_ship?(shipment) %><div class="card-footer flex justify-end border-t bg-gray-25"><% if shipment.tracked? %>- <%= link_to_with_icon 'send.svg', Spree.t(:ship), spree.ship_admin_order_shipment_path(order, shipment), class: 'ml-auto btn btn-primary mb-0', data: {turbo_method: :post, turbo_confirm: Spree.t(:are_you_sure)} %>+ <%= link_to_with_icon 'send.svg', Spree.t(:ship), spree.ship_admin_order_shipment_path(order, shipment), class: 'ml-auto btn btn-primary mb-0', data: {turbo_method: :post, turbo_confirm: Spree.t(:are_you_sure), turbo_frame: '_top'} %><% elsif !shipment.digital? %><span class="ship ml-auto btn btn-primary disabled mb-0" data-controller="tooltip" data-tooltip-placement-value="left"><%= icon 'send' %>