diff --git a/audit/internal/webui/api.go b/audit/internal/webui/api.go index 5fb23fc..24d0823 100644 --- a/audit/internal/webui/api.go +++ b/audit/internal/webui/api.go @@ -63,6 +63,10 @@ func streamJob(w http.ResponseWriter, r *http.Request, j *jobState) { if !sseStart(w) { return } + streamSubscribedJob(w, r, j) +} + +func streamSubscribedJob(w http.ResponseWriter, r *http.Request, j *jobState) { existing, ch := j.subscribe() for _, line := range existing { sseWrite(w, "", line) @@ -428,7 +432,6 @@ func (h *handler) handleAPIExportList(w http.ResponseWriter, r *http.Request) { writeJSON(w, entries) } - func (h *handler) handleAPIExportUSBTargets(w http.ResponseWriter, _ *http.Request) { if h.opts.App == nil { writeError(w, http.StatusServiceUnavailable, "app not configured") diff --git a/audit/internal/webui/pages.go b/audit/internal/webui/pages.go index 7818fc3..558b4f9 100644 --- a/audit/internal/webui/pages.go +++ b/audit/internal/webui/pages.go @@ -1559,23 +1559,37 @@ func renderTasks() string {

Loading...

-