From ef504689adc37f47057278ee7f2ac1d195b732d5 Mon Sep 17 00:00:00 2001 From: Rainer Dema Date: Fri, 3 Nov 2023 18:45:03 +0100 Subject: [PATCH] Add links for address management to customer section component --- .../components/solidus_admin/orders/show/component.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/app/components/solidus_admin/orders/show/component.html.erb b/admin/app/components/solidus_admin/orders/show/component.html.erb index b6a553d56a5..9fad865480a 100644 --- a/admin/app/components/solidus_admin/orders/show/component.html.erb +++ b/admin/app/components/solidus_admin/orders/show/component.html.erb @@ -16,8 +16,8 @@ <%= page_with_sidebar_aside do %> <%= render component('ui/panel').new(title: panel_title_with_more_links(t(".customer"), [ link_to("Edit order email", "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), - link_to("Edit shipping address", "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), - link_to("Edit billing address", "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), + link_to("Edit shipping address", solidus_admin.new_order_ship_address_path(@order), class: "p-2 hover:bg-gray-25 rounded-sm text-black"), + link_to("Edit billing address", solidus_admin.new_order_bill_address_path(@order), class: "p-2 hover:bg-gray-25 rounded-sm text-black"), link_to("Remove customer", "#", 'data-turbo-method': :delete, class: "p-2 hover:bg-gray-25 rounded-sm text-red-500"), ])) do %>