Skip to content

Commit b375db5

Browse files
committed
fix: pass opts into git/ingestor widgets
1 parent 4adafa1 commit b375db5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/doctor/ui/views/dashboard.cljs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@
9292
[ingest/ingest-buttons]
9393
[ingest/commit-ingest-buttons (:conn opts)]])
9494
:label "ingestors"
95+
:opts opts
9596
:actions (ingest/ingest-actions)}]
9697

9798
[widget-bar {:comp git-status/widget
9899
:label "git-status"
100+
:opts opts
99101
:bar git-status/bar}]
100102

101103
[widget-bar {:comp pomodoro/widget

src/doctor/ui/views/git_status.cljs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@
7878
[:div
7979
{:class ["text-center" "my-36" "text-slate-200"]}
8080

81-
[:div {:class ["font-nes"]} "Never fetched!"]
82-
[:div {:class ["font-mono"]} "Are you this out of sync?"]
81+
(when (empty? repos)
82+
[:div
83+
[:div {:class ["font-nes"]} "Never fetched!"]
84+
[:div {:class ["font-mono"]} "Are you this out of sync?"]])
8385

8486
[repo-table repos]]))

0 commit comments

Comments
 (0)