This commit is contained in:
giles 2024-09-15 23:04:53 +01:00
parent 8487b210a8
commit a1ebc4b207
1 changed files with 6 additions and 9 deletions

View File

@ -37,25 +37,22 @@
>
</div>
<div
<div
id="order-rose-ash-shop"
hx-get="order"
hx-trigger="load delay:1ms, configured from:body, paid from:body, ordered from:body delay:1ms"
hx-on::config-request = "event.detail.path = !(new URLSearchParams(window.location.search).get('order')) ? 'shop/order/?embed=true' : 'shop/order/?embed=true&orderId=' + new URLSearchParams(window.location.search).get('order');"
hx-swap="innerHTML"
>
</div>
<div
hx-swap="innerHTML">
</div>
<div
id="order-detail-rose-ash-shop"
hx-get="order"
hx-trigger="load delay:1ms, paid from:body"
hx-on::config-request="event.detail.path = new URLSearchParams(window.location.search).get('order') ? 'shop/order/' + new URLSearchParams(window.location.search).get('order')+ '/?embed=true' : null; //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }"
hx-swap="innerHTML"
>
</div>
>
</div>
{{#if feature_image}}
{{#unless no_image}}