Skip to content

Commit

Permalink
Always set the data-menu-id and data-quantity attributes on add to ca…
Browse files Browse the repository at this point in the history
…rt button

Signed-off-by: Sam <[email protected]>
  • Loading branch information
sampoyigi committed Mar 4, 2023
1 parent 4a22788 commit c49f5ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/menu/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ class="btn btn-light btn-sm btn-cart{{ $menuItemObject->mealtimeIsNotAvailable ?
@if (!$menuItemObject->mealtimeIsNotAvailable)
@if ($menuItemObject->hasOptions)
data-cart-control="load-item"
data-menu-id="{{ $menuItem->menu_id }}"
data-quantity="{{ $menuItem->minimum_qty }}"
@else
data-request="{{ $updateCartItemEventHandler }}"
data-request-data="menuId: '{{ $menuItem->menu_id }}', quantity: '{{ $menuItem->minimum_qty }}'"
data-replace-loading="fa fa-spinner fa-spin"
@endif
data-menu-id="{{ $menuItem->menu_id }}"
data-quantity="{{ $menuItem->minimum_qty }}"
@else
title="{{ implode("\r\n", $menuItemObject->mealtimeTitles) }}"
@endif
Expand Down

0 comments on commit c49f5ea

Please sign in to comment.