lots of improvements to editing invoices.
This commit is contained in:
@@ -96,7 +96,11 @@
|
||||
::modal-status
|
||||
(fn [db [_ id state]]
|
||||
(println "changing modal status" id "to")
|
||||
(update-in db [:modal-state id] #(merge % state))))
|
||||
(println (:auto-ap.forms/forms db))
|
||||
(-> db
|
||||
(update-in [:modal-state id] #(merge % state))
|
||||
(dissoc :auto-ap.forms/forms)
|
||||
)))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
::modal-failed
|
||||
@@ -108,7 +112,10 @@
|
||||
(re-frame/reg-event-db
|
||||
::modal-completed
|
||||
(fn [db [_ id state]]
|
||||
(update-in db [:modal-state] #(dissoc % id))))
|
||||
(println (:auto-ap.forms/forms db))
|
||||
(-> db
|
||||
(update-in [:modal-state] #(dissoc % id))
|
||||
(dissoc :auto-ap.forms/forms))))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::set-active-page
|
||||
|
||||
Reference in New Issue
Block a user