remove deprecated navigate-to function
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
d66400d5df
commit
fbd4ea2f63
|
@ -54,11 +54,12 @@
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:open-contact-toggle-list
|
:open-contact-toggle-list
|
||||||
(fn [{:keys [db]} _]
|
(fn [{:keys [db] :as cofx} _]
|
||||||
{:db (-> (assoc db
|
(handlers-macro/merge-fx cofx
|
||||||
:group/selected-contacts #{}
|
{:db (assoc db
|
||||||
:new-chat-name "")
|
:group/selected-contacts #{}
|
||||||
(navigation/navigate-to :contact-toggle-list))}))
|
:new-chat-name "")}
|
||||||
|
(navigation/navigate-to-cofx :contact-toggle-list nil))))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:open-chat-with-contact
|
:open-chat-with-contact
|
||||||
|
|
|
@ -31,10 +31,10 @@
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:extension/stage
|
:extension/stage
|
||||||
(fn [{:keys [db]} [_ extension-data]]
|
(fn [{:keys [db] :as cofx} [_ extension-data]]
|
||||||
{:db (-> db
|
(handlers-macro/merge-fx cofx
|
||||||
(assoc :staged-extension extension-data)
|
{:db (assoc db :staged-extension extension-data)}
|
||||||
(navigation/navigate-to :show-extension))}))
|
(navigation/navigate-to-cofx :show-extension nil))))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:extension/show
|
:extension/show
|
||||||
|
|
|
@ -11,11 +11,12 @@
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:show-group-chat-profile
|
:show-group-chat-profile
|
||||||
(fn [{:keys [db]} [_ chat-id]]
|
(fn [{:keys [db] :as cofx} [_ chat-id]]
|
||||||
{:db (-> db
|
(handlers-macro/merge-fx cofx
|
||||||
(assoc :new-chat-name (get-in db [:chats chat-id :name])
|
{:db (assoc db
|
||||||
:group/group-type :chat-group)
|
:new-chat-name (get-in db [:chats chat-id :name])
|
||||||
(navigation/navigate-to :group-chat-profile))}))
|
:group/group-type :chat-group)}
|
||||||
|
(navigation/navigate-to-cofx :group-chat-profile nil))))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:add-new-group-chat-participants
|
:add-new-group-chat-participants
|
||||||
|
|
|
@ -68,14 +68,6 @@
|
||||||
(:routeName (get actions index)))
|
(:routeName (get actions index)))
|
||||||
::navigate-reset config})
|
::navigate-reset config})
|
||||||
|
|
||||||
(defn navigate-to
|
|
||||||
"DEPRECATED, use navigate-to-cofx above.
|
|
||||||
Navigates to particular view"
|
|
||||||
([db go-to-view-id]
|
|
||||||
(navigate-to db go-to-view-id nil))
|
|
||||||
([db go-to-view-id screen-params]
|
|
||||||
(:db (navigate-to-cofx go-to-view-id screen-params {:db db}))))
|
|
||||||
|
|
||||||
(def unload-data-interceptor
|
(def unload-data-interceptor
|
||||||
(re-frame/->interceptor
|
(re-frame/->interceptor
|
||||||
:id unload-data-interceptor
|
:id unload-data-interceptor
|
||||||
|
|
Loading…
Reference in New Issue