Fixed missing FEATURE_FLAG_SHOPPINGLIST handling on /stockoverview, /mealplan and /stockentries pages (references #322)

This commit is contained in:
Bernd Bestel
2021-07-13 21:24:08 +02:00
parent 91d8eaeb74
commit 8b6f882edc
3 changed files with 25 additions and 3 deletions

View File

@@ -128,12 +128,14 @@
<i class="fas fa-ellipsis-v"></i>
</button>
<div class="dropdown-menu">
@if(GROCY_FEATURE_FLAG_SHOPPINGLIST)
<a class="dropdown-item show-as-dialog-link"
type="button"
href="{{ $U('/shoppinglistitem/new?embedded&updateexistingproduct&product=' . $stockEntry->product_id ) }}">
<i class="fas fa-shopping-cart"></i> {{ $__t('Add to shopping list') }}
</a>
<div class="dropdown-divider"></div>
@endif
<a class="dropdown-item show-as-dialog-link"
type="button"
href="{{ $U('/purchase?embedded&product=' . $stockEntry->product_id ) }}">