mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 20:11:16 +00:00
Also disable generic consume context menu item on /stockoverview when the item is not in stock (fixes #1523)
This commit is contained in:
@@ -236,7 +236,7 @@
|
||||
href="{{ $U('/purchase?embedded&product=' . $currentStockEntry->product_id ) }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-cart-plus"></i></span> <span class="dropdown-item-text">{{ $__t('Purchase') }}</span>
|
||||
</a>
|
||||
<a class="dropdown-item show-as-dialog-link permission-STOCK_CONSUME"
|
||||
<a class="dropdown-item show-as-dialog-link permission-STOCK_CONSUME @if($currentStockEntry->amount_aggregated < 1) disabled @endif"
|
||||
type="button"
|
||||
href="{{ $U('/consume?embedded&product=' . $currentStockEntry->product_id ) }}">
|
||||
<span class="dropdown-item-icon"><i class="fas fa-utensils"></i></span> <span class="dropdown-item-text">{{ $__t('Consume') }}</span>
|
||||
|
Reference in New Issue
Block a user