Skip to content

Commit

Permalink
UI fix active builds
Browse files Browse the repository at this point in the history
  • Loading branch information
thheller committed May 29, 2024
1 parent f78a265 commit c33b982
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/shadow/cljs/ui/components/dashboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,15 @@
(card-title "Active HTTP Servers")
(sg/simple-seq http-servers ui-http-server)])))

(defn ?active-builds [env]
(->> (::m/build env)
(vals)
(filter ::m/build-worker-active)
(mapv ::m/build-id)))

(defc ui-active-builds []
(bind active-builds
(sg/kv-lookup ::m/ui ::m/active-builds))
(sg/query ?active-builds))

(render
(<< [:div {:class (css :bg-white :shadow :mb-4)}
Expand Down

0 comments on commit c33b982

Please sign in to comment.