fix
This commit is contained in:
@@ -102,7 +102,6 @@
|
|||||||
(re-frame/reg-event-fx
|
(re-frame/reg-event-fx
|
||||||
::importing
|
::importing
|
||||||
(fn [{:keys [db]} _]
|
(fn [{:keys [db]} _]
|
||||||
(when @(re-frame/subscribe [::can-submit])
|
|
||||||
{:graphql
|
{:graphql
|
||||||
{:token (-> db :user)
|
{:token (-> db :user)
|
||||||
:owns-state {:single ::import}
|
:owns-state {:single ::import}
|
||||||
@@ -115,7 +114,7 @@
|
|||||||
[:ignored [:external-id]]
|
[:ignored [:external-id]]
|
||||||
[:errors [:external-id :error]]]]}]}
|
[:errors [:external-id :error]]]]}]}
|
||||||
:on-success [::imported]
|
:on-success [::imported]
|
||||||
:on-error [::forms/save-error ::form]}})))
|
:on-error [::forms/save-error ::form]}}))
|
||||||
|
|
||||||
;; COMPONENTS
|
;; COMPONENTS
|
||||||
|
|
||||||
@@ -189,10 +188,11 @@
|
|||||||
[:div
|
[:div
|
||||||
[:div.level
|
[:div.level
|
||||||
[:div.level-left
|
[:div.level-left
|
||||||
[:h1.title "Eternal Import"]]
|
[:h1.title "External Import"]]
|
||||||
|
|
||||||
[:div.level-right
|
[:div.level-right
|
||||||
[form-builder/submit-button "Import"]]]
|
(when (:line-items data )
|
||||||
|
[form-builder/submit-button "Import"])]]
|
||||||
[status/status-notification {:statuses [[::status/single ::import]]} ]
|
[status/status-notification {:statuses [[::status/single ::import]]} ]
|
||||||
(when result
|
(when result
|
||||||
[:div.notification
|
[:div.notification
|
||||||
|
|||||||
Reference in New Issue
Block a user