mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 22:49:53 +00:00
fix: don't show refresh button when user is not logged in
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
(t :open-a-directory)
|
||||
:on-click #(state/pub-event! [:graph/setup-a-repo]))])]]
|
||||
|
||||
(when (file-sync/enable-sync?)
|
||||
(when (and (file-sync/enable-sync?) login?)
|
||||
[:div
|
||||
[:hr]
|
||||
[:div.flex.align-items.justify-between
|
||||
@@ -232,7 +232,7 @@
|
||||
(> (count repos) 1) ; show switch to if there are multiple repos
|
||||
(assoc :links-header [:div.font-medium.text-sm.opacity-70.px-4.pt-2.pb-1.flex.flex-row.justify-between.items-center
|
||||
[:div "Switch to:"]
|
||||
(when (file-sync/enable-sync?)
|
||||
(when (and (file-sync/enable-sync?) login?)
|
||||
(if remotes-loading?
|
||||
(ui/loading "")
|
||||
[:a.flex {:title "Refresh remote graphs"
|
||||
|
||||
Reference in New Issue
Block a user