Remove unnecessary match_path options

Spree::Tab already knows when to highlight these, based on the controller name. It even handles sub-paths like '/admin/products/garlic/edit'.
This commit is contained in:
David Cook
2023-07-04 15:28:54 +10:00
committed by Jean-Baptiste Bellet
parent ea93800ee6
commit 439c0a8e18

View File

@@ -1,8 +1,8 @@
- content_for :sub_menu do
%ul#sub_nav.inline-menu
= tab :products, match_path: '/products'
= tab :products
= tab :properties
= tab :variant_overrides, url: main_app.admin_inventory_path, match_path: '/inventory'
= tab :import, url: main_app.admin_product_import_path, match_path: '/product_import'
- if feature?(:new_products_page, spree_current_user)
= tab :new_products, url: main_app.admin_new_products_path, match_path: '/new_products'
= tab :new_products, url: main_app.admin_new_products_path