fixes double click import ledger bug
This commit is contained in:
@@ -377,6 +377,14 @@
|
|||||||
'[(= ?ad true)]]}
|
'[(= ?ad true)]]}
|
||||||
:args [i (d/history (d/db (d/connect uri)))]}))))
|
:args [i (d/history (d/db (d/connect uri)))]}))))
|
||||||
|
|
||||||
|
(defn entity-history-with-revert [i]
|
||||||
|
(vec (sort-by first (d/query
|
||||||
|
{:query {:find ['?tx '?z '?v '?ad ]
|
||||||
|
:in ['?i '$]
|
||||||
|
:where ['[?i ?a ?v ?tx ?ad]
|
||||||
|
'[?a :db/ident ?z]]}
|
||||||
|
:args [i (d/history (d/db (d/connect uri)))]}))))
|
||||||
|
|
||||||
(defn tx-detail [i]
|
(defn tx-detail [i]
|
||||||
(map (juxt :e #(d/ident (d/db (d/connect uri)) (:a %)) :v)
|
(map (juxt :e #(d/ident (d/db (d/connect uri)) (:a %)) :v)
|
||||||
(:data (first
|
(:data (first
|
||||||
|
|||||||
@@ -203,7 +203,8 @@
|
|||||||
[:h1.title "Eternal Import"]]
|
[:h1.title "Eternal Import"]]
|
||||||
|
|
||||||
[:div.level-right
|
[:div.level-right
|
||||||
[:button.button.is-primary.is-pulled-right.is-large {:disabled (not data)
|
[:button.button.is-primary.is-pulled-right.is-large {:disabled (or (not data)
|
||||||
|
(= :loading (:state status )))
|
||||||
:on-click (dispatch-event [::importing])} "Import"]]]
|
:on-click (dispatch-event [::importing])} "Import"]]]
|
||||||
[status/status-notification {:statuses [[::status/single ::import]]} ]
|
[status/status-notification {:statuses [[::status/single ::import]]} ]
|
||||||
(when result
|
(when result
|
||||||
|
|||||||
Reference in New Issue
Block a user