a lot of progress on typeaheads, etc.

This commit is contained in:
Bryce Covert
2018-05-23 11:35:58 -07:00
parent e445adec02
commit bc10b35f0b
4 changed files with 17 additions and 5 deletions

View File

@@ -206,12 +206,12 @@
(re-frame/reg-event-fx
::invoice-created
(fn [{:keys [db]} [_ result]]
(fn [{:keys [db]} [_ {:keys [add-invoice]}]]
{:dispatch [::events/modal-completed ::new-invoice]
:db (-> db
(update-in [::invoice-page :invoices]
(fn [is]
(into [(:add-invoice result)]
(into [(assoc add-invoice :class "live-added")]
is)))
(dissoc ::new-invoice))}))