Fix OOB cart-mini clearing cart icon when adjusting tickets
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 52s

The mini macro was imported without context, so cart_count was invisible
to the macro. Pass count explicitly in _adjust_response.html and add
'with context' to _buy_result.html. Update shared submodule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-21 09:43:06 +00:00
parent f445d39d22
commit 90c918595c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{# Response for ticket adjust — buy form + OOB cart-mini update #}
{% from '_types/cart/_mini.html' import mini %}
{{ mini(oob='true') }}
{{ mini(oob='true', count=cart_count) }}
{% include '_types/tickets/_buy_form.html' %}

View File

@@ -1,6 +1,6 @@
{# Shown after ticket purchase — replaces the buy form #}
{# OOB: refresh cart badge to reflect new ticket count #}
{% from '_types/cart/_mini.html' import mini %}
{% from '_types/cart/_mini.html' import mini with context %}
{{ mini(oob='true') }}
<div id="ticket-buy-{{ entry.id }}" class="rounded-xl border border-emerald-200 bg-emerald-50 p-4">