Disable loader on colors.

This commit is contained in:
Andrey Antukh 2016-09-23 20:03:21 +03:00
parent 1acdef47d4
commit 8d20cf9d3d
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -15,7 +15,6 @@
[uxbox.main.state :as st] [uxbox.main.state :as st]
[uxbox.main.repo :as rp])) [uxbox.main.repo :as rp]))
;; --- Helpers ;; --- Helpers
(defn- assoc-collection (defn- assoc-collection
@ -44,10 +43,10 @@
:section :dashboard/colors}] :section :dashboard/colors}]
(assoc state :dashboard data))) (assoc state :dashboard data)))
rs/EffectEvent ;; rs/EffectEvent
(-apply-effect [_ state] ;; (-apply-effect [_ state]
(when (nil? (:colors-by-id state)) ;; (when (nil? (:colors-by-id state))
(reset! st/loader true))) ;; (reset! st/loader true)))
rs/WatchEvent rs/WatchEvent
(-apply-watch [_ state s] (-apply-watch [_ state s]