fix: don't show the refresh button if there's no graphs added yet

pull/3557/head
Tienson Qin 2021-12-23 11:34:26 +08:00
parent 03ff1048bb
commit 717fdb5940
1 changed files with 6 additions and 7 deletions

View File

@ -211,7 +211,7 @@
(new-block-mode)
(when (mobile-util/is-native-platform?)
(when (and (mobile-util/is-native-platform?) (seq repos))
[:a.text-sm.font-medium.button
{:on-click
(fn []
@ -227,9 +227,8 @@
(if refreshing?
[:div {:class "animate-spin-reverse"}
svg/refresh]
(when (seq repos)
[:div.flex.flex-row.text-center.open-button__inner.items-center
(ui/icon "refresh" {:style {:fontSize ui/icon-size}})]))])
(ui/icon "refresh" {:style {:fontSize ui/icon-size}})])])
(repo/sync-status current-repo)