From 2e545c84d4e2a09cd805893a41ac4857c99c6612 Mon Sep 17 00:00:00 2001 From: "Mariano Z." Date: Mon, 16 Jun 2025 10:18:30 -0300 Subject: [PATCH] dev: automated commit - 2025-06-16 10:18:30 --- templates/index.templ | 3 +-- templates/index_templ.go | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/templates/index.templ b/templates/index.templ index c58a501..b5f84d7 100644 --- a/templates/index.templ +++ b/templates/index.templ @@ -204,8 +204,7 @@ templ DNSRecordRow(record DNSRecord, currentIP string) { class="btn btn-sm btn-outline-primary me-1" hx-get={ fmt.Sprintf("/edit-record/%s", record.ID) } hx-target="#record-modal-content" - data-bs-toggle="modal" - data-bs-target="#recordModal" + hx-on::after-request="if(event.detail.successful) bootstrap.Modal.getOrCreateInstance(document.getElementById('recordModal')).show()" > diff --git a/templates/index_templ.go b/templates/index_templ.go index ef78652..683c94b 100644 --- a/templates/index_templ.go +++ b/templates/index_templ.go @@ -446,14 +446,14 @@ func DNSRecordRow(record DNSRecord, currentIP string) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "\" hx-target=\"#record-modal-content\" data-bs-toggle=\"modal\" data-bs-target=\"#recordModal\">