Allow no product for shopping list items & always in-/decrement by 1 when using the number input arrow buttons (fixes #964)

This commit is contained in:
Bernd Bestel
2020-10-18 14:27:23 +02:00
parent 7e08224c75
commit 80cf68aeaa
13 changed files with 11 additions and 30 deletions

View File

@@ -50,7 +50,7 @@
value="1">
@endif
<div class="@if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif" >
<div class="@if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif">
@php if($mode == 'edit') { $productId = $listItem->product_id; } else { $productId = ''; } @endphp
@include('components.productpicker', array(
'products' => $products,
@@ -65,7 +65,6 @@
'label' => 'Amount',
'hintId' => 'amount_qu_unit',
'min' => 0.01,
'step' => 0.01,
'value' => $value,
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0.01')
))