[#5211] show welcome screen after account creation

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Roman Volosovskyi 2018-07-18 13:14:24 +03:00 committed by Igor Mandrigin
parent 38f753d00e
commit 40ec6ec47e
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
4 changed files with 7 additions and 16 deletions

View File

@ -112,16 +112,10 @@
:account-set-name
(fn [{{:accounts/keys [create] :as db} :db :as cofx} _]
(handlers-macro/merge-fx cofx
{:db db
:dispatch [:navigate-to-clean :home]}
(accounts.utils/account-update {:name (:name create)}))))
(handlers/register-handler-fx
:account-finalized
(fn [{db :db} [_ show-welcome?]]
{:db (assoc db :accounts/create {:show-welcome? show-welcome?})
{:db (assoc db :accounts/create {:show-welcome? true})
:dispatch-n [[:navigate-to-clean :home]
[:request-notifications]]}))
[:request-notifications]]}
(accounts.utils/account-update {:name (:name create)}))))
(handlers/register-handler-fx
:account-set-input-text

View File

@ -60,7 +60,8 @@
:account-recovered-navigate
(fn [{:keys [db]}]
{:db (assoc-in db [:accounts/recover :processing] false)
:dispatch [:navigate-to-clean :home]}))
:dispatch-n [[:navigate-to-clean :home]
[:request-notifications]]}))
(handlers/register-handler-fx
:recover-account

View File

@ -114,8 +114,6 @@
(spec/def :navigation.screen-params.dapp-description/dapp :new/open-dapp)
(spec/def :navigation.screen-params/dapp-description map?)
(spec/def :navigation.screen-params/usage-data vector?)
(spec/def :navigation.screen-params/collectibles-list map?)
(spec/def :navigation/screen-params (spec/nilable (allowed-keys :opt-un [:navigation.screen-params/network-details
@ -125,7 +123,6 @@
:navigation.screen-params/group-contacts
:navigation.screen-params/edit-contact-group
:navigation.screen-params/dapp-description
:navigation.screen-params/usage-data
:navigation.screen-params/collectibles-list])))
(spec/def :desktop/desktop (spec/nilable any?))

View File

@ -377,8 +377,7 @@
[:update-wallet]
[:update-transactions]
[:get-fcm-token]
[:update-sign-in-time]
[:show-mainnet-is-default-alert]]
[:update-sign-in-time]]
(seq events-after) (into events-after))}))
(handlers/register-handler-fx