mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 21:26:11 +02:00
🐛 Fix onboarding after logging with token.
This commit is contained in:
parent
1099e08b7d
commit
afa35379b2
1 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,7 @@
|
||||||
(let [team-id (:default-team-id profile)]
|
(let [team-id (:default-team-id profile)]
|
||||||
(rx/merge
|
(rx/merge
|
||||||
(rx/of (du/profile-fetched profile)
|
(rx/of (du/profile-fetched profile)
|
||||||
(rt/nav :dashboard-projects {:team-id team-id}))
|
(rt/nav' :dashboard-projects {:team-id team-id}))
|
||||||
(when-not (get-in profile [:props :onboarding-viewed])
|
(when-not (get-in profile [:props :onboarding-viewed])
|
||||||
(->> (rx/of (modal/show {:type :onboarding}))
|
(->> (rx/of (modal/show {:type :onboarding}))
|
||||||
(rx/delay 1000))))))))
|
(rx/delay 1000))))))))
|
||||||
|
@ -77,9 +77,7 @@
|
||||||
|
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [this state s]
|
(watch [this state s]
|
||||||
(let [team-id (:default-team-id profile)]
|
(rx/of (logged-in profile)))))
|
||||||
(rx/of (du/profile-fetched profile)
|
|
||||||
(rt/nav' :dashboard-projects {:team-id team-id}))))))
|
|
||||||
|
|
||||||
(defn login-with-ldap
|
(defn login-with-ldap
|
||||||
[{:keys [email password] :as data}]
|
[{:keys [email password] :as data}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue