Merge pull request #12075 from cyrillefr/Actions-dropdown-should-not-open-automatically-after-shipping-the-order

Actions dropdown should stay closed after shipping order
This commit is contained in:
Konrad
2024-01-31 20:49:49 +01:00
committed by GitHub

View File

@@ -4,7 +4,7 @@
%i.icon-check
= I18n.t 'admin.actions'
%i{ "data-dropdown-target": "arrow", "data-expanded-class": "icon-caret-up", "data-collapsed-class": "icon-caret-down" }
%div.menu{"data-dropdown-target": "menu"}
%div.menu.hidden{"data-dropdown-target": "menu"}
- order_links(@order).each do |link|
- if link[:name] == t(:ship_order)
%a.menu_item{ href: link[:url], target: link[:target] || "_self", data: { "modal-link-target-value": dom_id(@order, :ship), "action": "click->modal-link#open", "controller": "modal-link" } }