Improved login process and profile loading.

This commit is contained in:
Andrey Antukh 2016-03-31 19:14:06 +03:00
parent 3875780440
commit f837835be4
7 changed files with 61 additions and 34 deletions

View file

@ -15,6 +15,7 @@
[uxbox.router :as r]
[uxbox.rstore :as rs]
[uxbox.data.projects :as dp]
[uxbox.data.auth :as uda]
[uxbox.ui.lightbox :as ui-lightbox]
[uxbox.ui.auth :as ui-auth]
[uxbox.ui.dashboard :as ui-dashboard]
@ -56,9 +57,16 @@
nil
))))
(defn app-will-mount
[own]
(rs/emit! (uda/fetch-profile)
(dp/fetch-projects))
own)
(def app
(mx/component
{:render app-render
:will-mount app-will-mount
:mixins [rum/reactive]
:name "app"}))