added support for merging vendors.

This commit is contained in:
Bryce Covert
2020-01-05 10:28:10 -08:00
parent 2913f05479
commit 2a708f1990
7 changed files with 144 additions and 38 deletions

View File

@@ -96,10 +96,9 @@
::modal-status
(fn [db [_ id state]]
(println "changing modal status" id "to")
(println (:auto-ap.forms/forms db))
(-> db
(update-in [:modal-state id] #(merge % state))
(dissoc :auto-ap.forms/forms)
#_(dissoc :auto-ap.forms/forms)
)))
(re-frame/reg-event-db
@@ -112,7 +111,6 @@
(re-frame/reg-event-db
::modal-completed
(fn [db [_ id state]]
(println (:auto-ap.forms/forms db))
(-> db
(update-in [:modal-state] #(dissoc % id))
(dissoc :auto-ap.forms/forms))))