started work on simplifying invoice page

This commit is contained in:
Bryce Covert
2020-08-10 13:26:14 -07:00
parent 8f491de902
commit 9dede12b61
5 changed files with 174 additions and 249 deletions

View File

@@ -168,10 +168,15 @@
(let [headers (if token
{"Authorization" (str "Token " token)}
{})
on-success (if (fn? on-success)
on-success
(fn [result]
(conj on-success result)))
method (if (= (get-in query-obj [:venia/operation :operation/type]) :mutation)
:post
:get)
headers (if (= method :post)
(assoc headers "Content-Type" "text/plain")
headers)
@@ -214,5 +219,5 @@
:body
:data
(dates->date-times)
(conj on-success)
(on-success)
(re-frame/dispatch))))))))