change web and status command to use callback

This commit is contained in:
Robin Olsen
2026-03-04 22:45:31 +01:00
parent cc6c4ea7cb
commit ae81e52f0d
3 changed files with 11 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package components
templ Status() {
<div hx-get="/status" hx-trigger="load, every 1s" hx-target="#status" hx-swap="innerHTML">
<div hx-get="/status" hx-trigger="load, click" hx-target="#status" hx-swap="innerHTML">
<div id="status"></div>
</div>
}