fix import batch
This commit is contained in:
@@ -199,6 +199,7 @@
|
|||||||
(try
|
(try
|
||||||
(f entry)
|
(f entry)
|
||||||
(catch Exception e
|
(catch Exception e
|
||||||
|
(println e)
|
||||||
(assoc entry :error (.getMessage e)
|
(assoc entry :error (.getMessage e)
|
||||||
:status (or (:status (ex-data e))
|
:status (or (:status (ex-data e))
|
||||||
:error))))))
|
:error))))))
|
||||||
|
|||||||
@@ -45,19 +45,15 @@
|
|||||||
::unmounted
|
::unmounted
|
||||||
(fn [{:keys [db]}]
|
(fn [{:keys [db]}]
|
||||||
{:dispatch [::data-page/dispose ::page]
|
{:dispatch [::data-page/dispose ::page]
|
||||||
::track/dispose {:id ::params}
|
::track/dispose {:id ::params}}))
|
||||||
:db (dissoc db ::msg)}))
|
|
||||||
|
|
||||||
;; VIEWS
|
;; VIEWS
|
||||||
(def import-batch-content
|
(def import-batch-content
|
||||||
(with-meta
|
(with-meta
|
||||||
(fn []
|
(fn []
|
||||||
(let [user @(re-frame/subscribe [::subs/user])
|
(let [user @(re-frame/subscribe [::subs/user])]
|
||||||
message @(re-frame/subscribe [::msg])]
|
|
||||||
[:div
|
[:div
|
||||||
[:h1.title "Import Batches"]
|
[:h1.title "Import Batches"]
|
||||||
(when message
|
|
||||||
[:div.notification.is-info.is-light message])
|
|
||||||
(when (= "admin" (:user/role user))
|
(when (= "admin" (:user/role user))
|
||||||
[:div
|
[:div
|
||||||
[:div.is-pulled-right
|
[:div.is-pulled-right
|
||||||
|
|||||||
Reference in New Issue
Block a user