tweaks.
This commit is contained in:
@@ -29,6 +29,14 @@
|
||||
:on-success [::received-invoices :pending]
|
||||
}}))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::view-pending-invoices
|
||||
(fn [cofx []]
|
||||
{:db (assoc-in (:db cofx) [:status :loading] true)
|
||||
:http {:method :get
|
||||
:uri "/api/invoices/pending"
|
||||
:on-success [::received-invoices :pending]}}))
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::view-unpaid-invoices
|
||||
(fn [cofx []]
|
||||
|
||||
Reference in New Issue
Block a user