From ff8b9465c7a69bf19bdff82c6a862d1e1761b5d2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 28 Dec 2022 17:05:35 +0100 Subject: [PATCH] Display info on outgoing products panel when some variants hidden --- .../admin/panels/exchange_products_panel_header.html.haml | 2 ++ config/locales/en.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/templates/admin/panels/exchange_products_panel_header.html.haml b/app/assets/javascripts/templates/admin/panels/exchange_products_panel_header.html.haml index b5433e1706..266ddbc118 100644 --- a/app/assets/javascripts/templates/admin/panels/exchange_products_panel_header.html.haml +++ b/app/assets/javascripts/templates/admin/panels/exchange_products_panel_header.html.haml @@ -1,5 +1,7 @@ .exchange-load-all-variants %div {{ 'js.admin.panels.exchange_products.variants_loaded' | t:{ num_of_variants_loaded: enterprises[exchange.enterprise_id].loaded_variants, total_number_of_variants: exchangeTotalVariants(exchange) } }} + %em{ 'ng-if': 'enterprises[exchange.enterprise_id].loaded_variants > exchangeTotalVariants(exchange)' } + {{ 'js.admin.panels.exchange_products.some_variants_hidden' | t }} %a{ 'ng-click' => 'loadAllExchangeProducts(exchange)', 'ng-show' => 'enterprises[exchange.enterprise_id].last_page_loaded < enterprises[exchange.enterprise_id].num_of_pages' } {{ 'js.admin.panels.exchange_products.load_all_variants' | t }} diff --git a/config/locales/en.yml b/config/locales/en.yml index fcf0e30bd0..7652de335b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3348,6 +3348,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using variants_loaded: "%{num_of_variants_loaded} of %{total_number_of_variants} Variants Loaded" loading_variants: "Loading Variants" no_variants: "No variant available for this product (hidden via inventory settings)." + some_variants_hidden: "(Some variants might be hidden via inventory settings)" tag_rules: shipping_method_tagged_top: "Shipping methods tagged" shipping_method_tagged_bottom: "are:"