Sha256: 0fc5f158710329791fe8909f43fc9527de10e4b475e073d5f717af30ddb6dcac

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

Deface::Override.new(
  virtual_path: "spree/admin/shared/_order_submenu",
  name: "admin_legacy_return_authorizations_submenu",
  insert_bottom: "[data-hook='admin_order_tabs']",
  text: %q(
    <% if can? :display, Spree::LegacyReturnAuthorization %>
      <% if @order.legacy_return_authorizations.exists? %>
        <li<%== ' class="active"' if current == 'Legacy Return Authorizations' %>>
          <%= link_to_with_icon 'share', Spree.t(:legacy_return_authorizations), admin_order_legacy_return_authorizations_url(@order) %>
        </li>
      <% end %>
    <% end %>
  )
)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_legacy_return_authorizations-1.0.2 app/overrides/admin_legacy_return_authorizations.rb
solidus_legacy_return_authorizations-1.0.1 app/overrides/admin_legacy_return_authorizations.rb
solidus_legacy_return_authorizations-1.0.0 app/overrides/admin_legacy_return_authorizations.rb