Update pages in place instead of reloading them

A page that is working fetches itself again and swaps only its content;
the log on the Packages page follows new text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV9dZrK6nipHkPfyM4F
This commit is contained in:
2026-11-18 00:18:18 +01:00
co-authored by Claude Sonnet 5.5
parent 4ee28b812b
commit c2115aba03
6 changed files with 46 additions and 8 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ func (a *app) upgradePage(w http.ResponseWriter, r *http.Request, sess session)
d := a.upgradeData()
p := page{Title: "Packages", CSRF: sess.csrf, LoggedIn: true, Data: d, Flash: r.URL.Query().Get("msg")}
if d.Run.Running {
p.Refresh = 3
p.Live = 3
}
a.render(w, "upgrade", p)
}