app/components/solidus_admin/orders/show/component.html.erb in solidus_admin-0.2.0 vs app/components/solidus_admin/orders/show/component.html.erb in solidus_admin-0.3.0

- old
+ new

@@ -14,13 +14,13 @@ <%= render component("orders/show/summary").new(order: @order) %> <% end %> <%= page_with_sidebar_aside do %> <%= render component('ui/panel').new do |panel| %> - <% panel.with_menu t(".edit_email"), solidus_admin.order_customer_path(@order) %> - <% panel.with_menu t(".edit_shipping"), solidus_admin.edit_order_ship_address_path(@order) %> - <% panel.with_menu t(".edit_billing"), solidus_admin.edit_order_bill_address_path(@order) %> + <% panel.with_menu t(".edit_email"), solidus_admin.order_customer_path(@order), data: { turbo_frame: :edit_order_email_modal } %> + <% panel.with_menu t(".edit_shipping"), solidus_admin.edit_order_ship_address_path(@order), data: { turbo_frame: :edit_order_ship_address_modal } %> + <% panel.with_menu t(".edit_billing"), solidus_admin.edit_order_bill_address_path(@order), data: { turbo_frame: :edit_order_bill_address_modal } %> <% panel.with_menu t(".remove_customer"), solidus_admin.order_customer_path(@order), method: :delete, class: "text-red-500" if @order.user %> <% panel.with_section(class: 'flex flex-col gap-6') do %> <div class="flex flex-col gap-2"> <span class="font-semibold text-sm"><%= t(".customer") %></span> @@ -70,7 +70,11 @@ <% end %> <% end %> <% end %> + <% end %> + + <% turbo_frames.each do |frame| %> + <%= turbo_frame_tag frame %> <% end %> <% end %>