[Fixes: #9181] Reset edit mailserver on add pressed
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
92aaa194a8
commit
a4716cc494
|
@ -174,8 +174,10 @@
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:mailserver.ui/add-pressed
|
:mailserver.ui/add-pressed
|
||||||
(fn [cofx _]
|
(fn [{:keys [db] :as cofx} _]
|
||||||
(navigation/navigate-to-cofx cofx :edit-mailserver nil)))
|
(fx/merge cofx
|
||||||
|
{:db (dissoc db :mailserver.edit/mailserver)}
|
||||||
|
(navigation/navigate-to-cofx :edit-mailserver nil))))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:mailserver.ui/save-pressed
|
:mailserver.ui/save-pressed
|
||||||
|
|
Loading…
Reference in New Issue