Sha256: a896d98bd3f9eae916e3393f9f5a4502c02317580dd5b854be1e787f36b81732

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

Spree::Backend::Config.configure do |config|
  config.menu_items.detect { |menu_item|
    menu_item.label == :products
  }.sections << :reviews
end

Deface::Override.new(virtual_path: "spree/admin/shared/_product_sub_menu",
                     name: "reviews_admin_tab",
                     insert_bottom: "[data-hook='admin_product_sub_tabs']",
                     text: "<%= tab(:reviews, label: 'review_management') %>")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_reviews-1.3.0 app/overrides/add_reviews_tab_to_admin.rb
solidus_reviews-1.2.0 app/overrides/add_reviews_tab_to_admin.rb
solidus_reviews-1.1.1 app/overrides/add_reviews_tab_to_admin.rb
solidus_reviews-1.1.0 app/overrides/add_reviews_tab_to_admin.rb