makes it look like you can add a new invoice.

This commit is contained in:
Bryce Covert
2018-05-22 22:30:54 -07:00
parent 6bb4c6e928
commit 37371024d1
4 changed files with 102 additions and 32 deletions

View File

@@ -66,12 +66,17 @@
(re-frame/reg-event-db
::swap-company
(fn [db [_ company]]
(println company)
(assoc db :company (:id company))))
(re-frame/reg-event-db
::change-form
(fn [db [_ location field value]]
(assoc-in db (into location field) value)))
(re-frame/reg-event-db
::modal-status
(fn [db [_ id state]]
(println "changing modal status" id "to")
(update-in db [:modal-state id] #(merge % state))))
(re-frame/reg-event-db