From 53fa2ef8d505305338d5377495b3dcc7b4a97e24 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 14 Nov 2022 11:01:37 +0100 Subject: [PATCH] Change order of the Actions menu: resend, print, cancel It's more close to the Actions menu for a specific order (ie. on page `/admin/orders/[ORDER_ID]/edit`) --- app/views/spree/admin/orders/index.html.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/spree/admin/orders/index.html.haml b/app/views/spree/admin/orders/index.html.haml index e834c9b88e..4326c2065e 100644 --- a/app/views/spree/admin/orders/index.html.haml +++ b/app/views/spree/admin/orders/index.html.haml @@ -30,16 +30,15 @@ ="#{t('admin.actions')}".html_safe %span{ 'ng-class' => "expanded && 'icon-caret-up' || !expanded && 'icon-caret-down'" } %div.menu{ 'ng-show' => "expanded" } + %div.menu_item + %span.name{ "data-controller": "modal-link", "data-action": "click->modal-link#open", "data-modal-link-target-value": "resend_confirmation" } + = t('.resend_confirmation') %div.menu_item %span.name.invoices-modal{'ng-controller' => 'bulkInvoiceCtrl', 'ng-click' => 'createBulkInvoice()' } = t('.print_invoices') %div.menu_item %span.name{'ng-controller' => 'bulkCancelCtrl', 'ng-click' => 'cancelSelectedOrders()' } = t('.cancel_orders') - %div.menu_item - %span.name{ "data-controller": "modal-link", "data-action": "click->modal-link#open", "data-modal-link-target-value": "resend_confirmation" } - = t('.resend_confirmation') - = render partial: 'per_page_controls', locals: { position: "right" }