From 9e73349bfb328fd5a4856ac0b14e8e92b46a2883 Mon Sep 17 00:00:00 2001 From: Katharina Bogad Date: Mon, 7 Jun 2021 10:57:40 +0200 Subject: [PATCH] Grocycode: Do not show on product card --- public/viewjs/components/productcard.js | 4 ---- views/components/productcard.blade.php | 5 ----- 2 files changed, 9 deletions(-) diff --git a/public/viewjs/components/productcard.js b/public/viewjs/components/productcard.js index aaa00669..f9bf3215 100644 --- a/public/viewjs/components/productcard.js +++ b/public/viewjs/components/productcard.js @@ -23,10 +23,6 @@ Grocy.Components.ProductCard.Refresh = function(productId) } $('#productcard-product-spoil-rate').text((parseFloat(productDetails.spoil_rate_percent) / 100).toLocaleString(undefined, { style: "percent" })); - // grocycode - $("#productcard-product-grocycode-image").attr("src", U('/product/' + productDetails.product.id + '/grocycode')); - $("#productcard-product-grocycode-image-link").attr("href", U('/product/' + productDetails.product.id + '/grocycode?download=true')); - if (productDetails.is_aggregated_amount == 1) { $('#productcard-product-stock-amount-aggregated').text(productDetails.stock_amount_aggregated); diff --git a/views/components/productcard.blade.php b/views/components/productcard.blade.php index 7da09ef9..a6f5e82b 100644 --- a/views/components/productcard.blade.php +++ b/views/components/productcard.blade.php @@ -55,11 +55,6 @@ @if (GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING){{ $__t('Average price') }}:
@endif @if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING){{ $__t('Average shelf life') }}:
@endif {{ $__t('Spoil rate') }}: -

{{ $__t('Grocycode') }}:

{{ $__t('Download') }}