This commit is contained in:
2022-12-07 22:11:14 -08:00
parent 520804cd8d
commit b2787b4732
2 changed files with 7 additions and 4 deletions

View File

@@ -8,7 +8,8 @@
[re-frame.core :as re-frame]
[reagent.core :as reagent]
[vimsical.re-frame.cofx.inject :as inject]
[auto-ap.status :as status]))
[auto-ap.status :as status]
[clojure.string :as str]))
(re-frame/reg-event-fx
::ready
@@ -58,7 +59,7 @@
[:<>
[:div
"Ready! Click "
[:a {:href (str "data:attachment/csv;charset=utf-8," (js/encodeURI export-result))
[:a {:href (str "data:attachment/csv;charset=utf-8,%EF%BB%BF" (js/encodeURI (str/replace export-result "#" "Number ")))
:target "_blank"
:download (str "vendors-" (:code client) ".csv")}
"here"]