[#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,17 +112,11 @@
:account-set-name :account-set-name
(fn [{{:accounts/keys [create] :as db} :db :as cofx} _] (fn [{{:accounts/keys [create] :as db} :db :as cofx} _]
(handlers-macro/merge-fx cofx (handlers-macro/merge-fx cofx
{:db db {:db (assoc db :accounts/create {:show-welcome? true})
:dispatch [:navigate-to-clean :home]} :dispatch-n [[:navigate-to-clean :home]
[:request-notifications]]}
(accounts.utils/account-update {:name (:name create)})))) (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?})
:dispatch-n [[:navigate-to-clean :home]
[:request-notifications]]}))
(handlers/register-handler-fx (handlers/register-handler-fx
:account-set-input-text :account-set-input-text
(fn [{db :db} [_ input-key text]] (fn [{db :db} [_ input-key text]]

View File

@ -59,8 +59,9 @@
(handlers/register-handler-fx (handlers/register-handler-fx
:account-recovered-navigate :account-recovered-navigate
(fn [{:keys [db]}] (fn [{:keys [db]}]
{:db (assoc-in db [:accounts/recover :processing] false) {: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 (handlers/register-handler-fx
:recover-account :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/dapp :new/open-dapp)
(spec/def :navigation.screen-params/dapp-description map?) (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/collectibles-list map?)
(spec/def :navigation/screen-params (spec/nilable (allowed-keys :opt-un [:navigation.screen-params/network-details (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/group-contacts
:navigation.screen-params/edit-contact-group :navigation.screen-params/edit-contact-group
:navigation.screen-params/dapp-description :navigation.screen-params/dapp-description
:navigation.screen-params/usage-data
:navigation.screen-params/collectibles-list]))) :navigation.screen-params/collectibles-list])))
(spec/def :desktop/desktop (spec/nilable any?)) (spec/def :desktop/desktop (spec/nilable any?))

View File

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