navigate to login when error
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
5da9efebe3
commit
94235aa703
|
@ -16,7 +16,7 @@
|
||||||
(log/debug "[signals] status-node-started"
|
(log/debug "[signals] status-node-started"
|
||||||
"error" error)
|
"error" error)
|
||||||
(if error
|
(if error
|
||||||
{:db (-> db
|
(cond-> {:db (-> db
|
||||||
(update :multiaccounts/login dissoc :processing)
|
(update :multiaccounts/login dissoc :processing)
|
||||||
(assoc-in [:multiaccounts/login :error]
|
(assoc-in [:multiaccounts/login :error]
|
||||||
;; NOTE: the only currently known error is
|
;; NOTE: the only currently known error is
|
||||||
|
@ -30,6 +30,8 @@
|
||||||
(if (= error "file is not a database")
|
(if (= error "file is not a database")
|
||||||
(i18n/label :t/wrong-password)
|
(i18n/label :t/wrong-password)
|
||||||
error)))}
|
error)))}
|
||||||
|
(= (:view-id db) :progress)
|
||||||
|
(assoc :dispatch [:navigate-to :login]))
|
||||||
(login/multiaccount-login-success cofx)))
|
(login/multiaccount-login-success cofx)))
|
||||||
|
|
||||||
(fx/defn summary
|
(fx/defn summary
|
||||||
|
|
Loading…
Reference in New Issue