Show only the new products page in the menu

When the feature toggle is enabled, we don't want to see the old products page. It's a bit broken and causes confusion. But we still want to be able to access it by the URL for now.
This commit is contained in:
David Cook
2023-10-10 22:09:26 +11:00
parent 90c25d604b
commit 99205e435c

View File

@@ -1,8 +1,9 @@
- content_for :sub_menu do
%ul#sub_nav.inline-menu
= tab :products
- if feature?(:admin_style_v3, spree_current_user)
= tab :products_v3, url: main_app.admin_products_v3_index_path
- else
= 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?(:admin_style_v3, spree_current_user)
= tab :products_v3, url: main_app.admin_products_v3_index_path