mirror of
https://github.com/penpot/penpot.git
synced 2025-03-30 00:21:19 -05:00
Remove useless namespacing for persist auth data in storage.
The storage is already namespaced.
This commit is contained in:
parent
6273b05c51
commit
29e6ebdb83
3 changed files with 4 additions and 4 deletions
src/uxbox/main
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
rs/WatchEvent
|
rs/WatchEvent
|
||||||
(-apply-watch [this state s]
|
(-apply-watch [this state s]
|
||||||
(swap! storage assoc :uxbox/auth data)
|
(swap! storage assoc :auth data)
|
||||||
(rx/of (udu/fetch-profile)
|
(rx/of (udu/fetch-profile)
|
||||||
(rt/navigate :dashboard/projects))))
|
(rt/navigate :dashboard/projects))))
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
(defrecord Logout []
|
(defrecord Logout []
|
||||||
rs/UpdateEvent
|
rs/UpdateEvent
|
||||||
(-apply-update [_ state]
|
(-apply-update [_ state]
|
||||||
(swap! storage dissoc :uxbox/auth)
|
(swap! storage dissoc :auth)
|
||||||
(merge state (dissoc (st/initial-state) :route)))
|
(merge state (dissoc (st/initial-state) :route)))
|
||||||
|
|
||||||
rs/WatchEvent
|
rs/WatchEvent
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
(defn- auth-headers
|
(defn- auth-headers
|
||||||
[]
|
[]
|
||||||
(when-let [auth (:uxbox/auth storage)]
|
(when-let [auth (:auth storage)]
|
||||||
{"authorization" (str "Token " (:token auth "no-token"))}))
|
{"authorization" (str "Token " (:token auth "no-token"))}))
|
||||||
|
|
||||||
(defn- encode-query
|
(defn- encode-query
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
:images-order :name
|
:images-order :name
|
||||||
:images-filter ""}
|
:images-filter ""}
|
||||||
:route nil
|
:route nil
|
||||||
:auth (:uxbox/auth storage nil)
|
:auth (:auth storage nil)
|
||||||
:clipboard #queue []
|
:clipboard #queue []
|
||||||
:undo {}
|
:undo {}
|
||||||
:profile nil
|
:profile nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue