[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
|
||||
:mailserver.ui/add-pressed
|
||||
(fn [cofx _]
|
||||
(navigation/navigate-to-cofx cofx :edit-mailserver nil)))
|
||||
(fn [{:keys [db] :as cofx} _]
|
||||
(fx/merge cofx
|
||||
{:db (dissoc db :mailserver.edit/mailserver)}
|
||||
(navigation/navigate-to-cofx :edit-mailserver nil))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:mailserver.ui/save-pressed
|
||||
|
|
Loading…
Reference in New Issue