just some refactoring for action-dialogue.

This commit is contained in:
Bryce Covert
2018-05-22 21:11:10 -07:00
parent 2c42146a3d
commit 6bb4c6e928
7 changed files with 110 additions and 65 deletions

View File

@@ -69,6 +69,16 @@
(println company)
(assoc db :company (:id company))))
(re-frame/reg-event-db
::modal-status
(fn [db [_ id state]]
(update-in db [:modal-state id] #(merge % state))))
(re-frame/reg-event-db
::modal-completed
(fn [db [_ id state]]
(update-in db [:modal-state] #(dissoc % id))))
(re-frame/reg-event-fx
::set-active-page
(fn [{:keys [db]} [_ handler]]