Optimized GROCY_FEATURE_FLAG_STOCK handling (closes #966)

This commit is contained in:
Bernd Bestel
2020-12-21 20:13:49 +01:00
parent 7478d9bb38
commit 694b78f72a
11 changed files with 90 additions and 99 deletions

View File

@@ -57,7 +57,7 @@
value="1">
@endif
<div class="@if(!GROCY_FEATURE_FLAG_STOCK) d-none @endif">
<div>
@php if($mode == 'edit') { $productId = $listItem->product_id; } else { $productId = ''; } @endphp
@include('components.productpicker', array(
'products' => $products,
@@ -94,10 +94,5 @@
</form>
</div>
@if(GROCY_FEATURE_FLAG_STOCK)
<div class="col-xs-12 col-md-6 col-xl-4 hide-when-embedded">
@include('components.productcard')
</div>
@endif
</div>
@stop