This commit is contained in:
giles 2024-09-24 02:38:37 +01:00
parent de022b4560
commit 39c4a92f20
2 changed files with 3 additions and 10 deletions

View File

@ -94,13 +94,6 @@
</footer> </footer>
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load"> <div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
</div> </div>
<div
id="orders-rose-ash-shop"
hx-get="shop/orders"
hx-trigger="load, paid from:body, configured from:body"
hx-swap="innerHTML"
>
</div>
</div> </div>
{{/is}} {{/is}}

View File

@ -23,8 +23,8 @@
event.detail.path = !( event.detail.path = !(
new URLSearchParams(window.location.search new URLSearchParams(window.location.search
).get('order')) ).get('order'))
? 'shop/order/?embed=true' ? 'shop/order/'
: 'shop/order/?embed=true&orderId=' + new URLSearchParams(window.location.search).get('order'); : 'shop/order/?orderId=' + new URLSearchParams(window.location.search).get('order');
"; ";
hx-swap="outerHTML" hx-swap="outerHTML"
> >
@ -36,7 +36,7 @@
id="order-detail-rose-ash-shop" id="order-detail-rose-ash-shop"
hx-get="order" hx-get="order"
hx-trigger="load delay:1ms" hx-trigger="load delay:1ms"
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::config-request="event.detail.path = new URLSearchParams(window.location.search).get('order') ? 'shop/order/' + new URLSearchParams(window.location.search).get('order')+ '/' : null; //6a919002-94eb-467d-a226-5dd05b7f44a3 '"
hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }" hx-on::confirm = " if (!new URLSearchParams(window.location.search).get('order')) { event.preventDefault(); }"
hx-swap="innerHTML" hx-swap="innerHTML"
> >