refactored transactions.

This commit is contained in:
Bryce Covert
2019-04-26 13:20:40 -07:00
parent f1269085ae
commit 598da0f322
9 changed files with 104 additions and 98 deletions

View File

@@ -12,7 +12,7 @@
(<= 1 (count accounts)))
(not (get-in accounts [0 :account :id]))))
(defn default-account [accounts default-account amount]
(defn default-account [accounts default-account amount locations]
[{:id (doto (get-in accounts [0 :id]
(str "new-" (random-uuid)))
println)
@@ -21,7 +21,10 @@
:amount-mode "%"
:location (or
(:location default-account)
(get-in accounts [0 :account :location]))
(get-in accounts [0 :account :location])
(if (= 1 (count locations))
(first locations)
nil))
:account default-account}])

View File

@@ -136,3 +136,7 @@
bottom
[:div#dz-hidden]]))
(defn side-bar [{:keys [on-close]} children]
[:div [:a.delete.is-pulled-right {:on-click on-close}] [:div children]])

View File

@@ -153,7 +153,7 @@
[:div.control
[:div.tags.has-addons
[:span.tag text]
[:a.tag.is-delete {:on-click (fn [] (select nil))}]]]]
[:a.tag.is-delete {:on-click (fn [] (select nil) (reset! text-atom nil))}]]]]
^{:key "typeahead"} [:input.input {:type "text"
:class class