diff --git a/src/main/frontend/components/file_sync.cljs b/src/main/frontend/components/file_sync.cljs index 322f91b4c1..b60a2773f6 100644 --- a/src/main/frontend/components/file_sync.cljs +++ b/src/main/frontend/components/file_sync.cljs @@ -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 diff --git a/src/main/frontend/state.cljs b/src/main/frontend/state.cljs index cd8f4199c1..3296d82de3 100644 --- a/src/main/frontend/state.cljs +++ b/src/main/frontend/state.cljs @@ -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)] {}))