feat: update cart with custom trigger

This commit is contained in:
2024-11-27 17:28:09 +01:00
parent fa1d904db5
commit d16d194ae4
5 changed files with 4 additions and 61 deletions
+1 -1
View File
@@ -46,7 +46,7 @@
{% include 'components/theme-switch.html' %}
<!-- Show/Hide cart -->
<div id="navbar-cart-dropdown" hx-get="{% url 'web:cart_dropdown' %}" hx-trigger="load"></div>
<div id="navbar-cart-dropdown" hx-get="{% url 'web:cart_dropdown' %}" hx-trigger="load, updated-cart from:body"></div>
{% if request.user.is_authenticated %}
<!-- Show/Hide user account dropdown -->