mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: sync status not refreshed
This commit is contained in:
@@ -326,7 +326,7 @@
|
||||
enabled-progress-panel? (util/electron?)
|
||||
current-repo (state/get-current-repo)
|
||||
creating-remote-graph? (state/sub [:ui/loading? :graph/create-remote?])
|
||||
current-graph-id (state/get-current-file-sync-graph-uuid)
|
||||
current-graph-id (state/sub-current-file-sync-graph-uuid)
|
||||
sync-state (state/sub-file-sync-state current-graph-id)
|
||||
sync-progress (state/sub [:file-sync/graph-state
|
||||
current-graph-id
|
||||
@@ -516,11 +516,7 @@
|
||||
(when (and
|
||||
(not enabled-progress-panel?)
|
||||
synced-file-graph? queuing?)
|
||||
[:div.head-ctls (sync-now)])
|
||||
|
||||
;(when config/dev?
|
||||
; [:strong.debug-status (str status)])
|
||||
]}))])))
|
||||
[:div.head-ctls (sync-now)])]}))])))
|
||||
|
||||
(rum/defc pick-local-graph-for-sync [graph]
|
||||
[:div.cp__file-sync-related-normal-modal
|
||||
|
||||
@@ -1796,6 +1796,10 @@ Similar to re-frame subscriptions"
|
||||
[]
|
||||
(get-in @state [:file-sync/graph-state :current-graph-uuid]))
|
||||
|
||||
(defn sub-current-file-sync-graph-uuid
|
||||
[]
|
||||
(sub [:file-sync/graph-state :current-graph-uuid]))
|
||||
|
||||
(defn reset-parsing-state!
|
||||
[]
|
||||
(set-state! [:graph/parsing-state (get-current-repo)] {}))
|
||||
|
||||
Reference in New Issue
Block a user