fix: display sync icon only if current graph is an rtc one

This commit is contained in:
Tienson Qin
2025-02-24 17:07:02 +08:00
parent 8053942737
commit 2415270fad
2 changed files with 6 additions and 0 deletions

View File

@@ -925,6 +925,11 @@ Similar to re-frame subscriptions"
[]
(:rtc/graphs @state))
(defn rtc-graph?
[graph]
(some (fn [rtc-graph]
(= (:url rtc-graph) graph)) (get-rtc-graphs)))
(defn get-remote-graph-info-by-uuid
[uuid]
(when-let [graphs (seq (get-in @state [:file-sync/remote-graphs :graphs]))]