"No data" text for empty repo groups
* show "No data" text for repository groups with no repositories
This commit is contained in:
parent
a7f636c956
commit
034dacf29a
|
@ -68,9 +68,12 @@
|
||||||
(map (fn [group] [group (get @repos group)])
|
(map (fn [group] [group (get @repos group)])
|
||||||
repo-groups)]
|
repo-groups)]
|
||||||
[:div.repo-group-title [repo-group-title group (:login @user)]
|
[:div.repo-group-title [repo-group-title group (:login @user)]
|
||||||
(into [:div.ui.cards]
|
(let [filtered-group-repos (filter filter-fn group-repos)]
|
||||||
(map repo-card
|
(if (empty? filtered-group-repos)
|
||||||
(filter filter-fn group-repos)))]))))))
|
[:div.ui.text "No data"]
|
||||||
|
(into [:div.ui.cards]
|
||||||
|
(map repo-card
|
||||||
|
filtered-group-repos))))]))))))
|
||||||
|
|
||||||
(defn repos-page-token-ok []
|
(defn repos-page-token-ok []
|
||||||
(println "repos-token-ok")
|
(println "repos-token-ok")
|
||||||
|
|
Loading…
Reference in New Issue