From 00f3f856dddc2206f787a2c8d7e64dd140b01245 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Sun, 19 Jan 2025 18:21:16 +0100 Subject: [PATCH] close modal after submit and update the line items --- internal/view/booking_by_id.templ | 8 +++++++- internal/view/booking_by_id_templ.go | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/view/booking_by_id.templ b/internal/view/booking_by_id.templ index ae5fb0e..0984178 100644 --- a/internal/view/booking_by_id.templ +++ b/internal/view/booking_by_id.templ @@ -137,7 +137,13 @@ templ PaymentModal(paymentUrl string) { ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 22, "\" hx-target=\"#line-items\" hx-swap=\"innerHTML\" hx-on::after-request=\"if(event.detail.successful) payment_modal.close()\">
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }