This commit is contained in:
Bryce Covert
2020-01-05 10:33:58 -08:00
7 changed files with 147 additions and 39 deletions

View File

@@ -102,8 +102,12 @@
(re-frame/reg-sub
::modal-state
(fn [db [_ id]]
(get (:modal-state db) id)))
(fn [db [_ id status-from]]
(if status-from
(assoc (get (:modal-state db) id)
:error-message (get-in db [:auto-ap.forms/forms status-from :error])
:saving? (= (get-in db [:auto-ap.forms/forms status-from :status]) :loading))
(get (:modal-state db) id))))
(re-frame/reg-sub
::token