mirror of
https://github.com/grocy/grocy.git
synced 2025-08-07 23:09:48 +00:00
Only show the shopping list button on the product card if the feature is enabled
This commit is contained in:
parent
f8e2e4ced7
commit
262f3df3ab
@ -27,6 +27,7 @@
|
|||||||
title="{{ $__t('Edit product') }}">
|
title="{{ $__t('Edit product') }}">
|
||||||
<i class="fa-solid fa-edit"></i>
|
<i class="fa-solid fa-edit"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@if(GROCY_FEATURE_FLAG_SHOPPINGLIST)
|
||||||
<a id="productcard-product-shoppinglist-button"
|
<a id="productcard-product-shoppinglist-button"
|
||||||
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
||||||
href="#"
|
href="#"
|
||||||
@ -34,6 +35,7 @@
|
|||||||
title="{{ $__t('Add to shopping list') }}">
|
title="{{ $__t('Add to shopping list') }}">
|
||||||
<i class="fa-solid fa-shopping-cart"></i>
|
<i class="fa-solid fa-shopping-cart"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
<a id="productcard-product-journal-button"
|
<a id="productcard-product-journal-button"
|
||||||
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
class="btn btn-sm btn-outline-secondary py-0 mr-1 float-right disabled show-as-dialog-link"
|
||||||
href="#"
|
href="#"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user