you can't add an existing invoice.
This commit is contained in:
@@ -85,6 +85,14 @@
|
||||
(println "changing modal status" id "to")
|
||||
(update-in db [:modal-state id] #(merge % state))))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
::modal-failed
|
||||
(fn [db [_ id message]]
|
||||
(println "CURRENT" (get-in db [:modal-state]))
|
||||
(-> db
|
||||
(assoc-in [:modal-state id :saving?] false)
|
||||
(assoc-in [:modal-state id :error-message] message))))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
::modal-completed
|
||||
(fn [db [_ id state]]
|
||||
|
||||
Reference in New Issue
Block a user