Merge branch 'master' into enhance/mobile-ux-2

This commit is contained in:
charlie
2022-12-01 11:14:53 +08:00
22 changed files with 239 additions and 135 deletions

View File

@@ -263,7 +263,7 @@
:file-sync/graph-state {:current-graph-uuid nil
;; graph-uuid -> ...
}
:user/info {:UserGroups (storage/get :user-groups)}
:encryption/graph-parsing? false
:ui/loading? {}
@@ -2069,3 +2069,11 @@ Similar to re-frame subscriptions"
(when (and shape-id (parse-uuid shape-id))
(. api selectShapes shape-id)
(. api zoomToSelection)))))
(defn set-user-info!
[info]
(when info
(set-state! :user/info info)
(let [groups (:UserGroups info)]
(when (seq groups)
(storage/set :user-groups groups)))))