From e0735ce2e45e597b875c15a41af1f26dbf1621d8 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 24 Sep 2021 13:13:38 +0200 Subject: [PATCH] Hide stock value on productcard when FEATURE_FLAG_STOCK_PRICE_TRACKING is disabled --- views/components/productcard.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/components/productcard.blade.php b/views/components/productcard.blade.php index 7fc24c76..e68d4290 100644 --- a/views/components/productcard.blade.php +++ b/views/components/productcard.blade.php @@ -46,8 +46,8 @@ class="pl-2 text-secondary d-none">
- {{ $__t('Stock value') }}:
+ @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING){{ $__t('Stock value') }}:
@endif @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING){{ $__t('Default location') }}:
@endif {{ $__t('Last purchased') }}: