now bank accounts exist.

This commit is contained in:
Bryce Covert
2018-05-14 09:48:44 -07:00
parent bbd9f00f30
commit 70766c6d4b
6 changed files with 34 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
:user token)
:graphql {:token token
:query-obj {:venia/queries [[:company
[:id :name]]]}
[:id :name [:bank-accounts [:id :number :check-number]]]]]}
:on-success [::received-companies]}}))))

View File

@@ -65,6 +65,13 @@
:spec ::entity/name
:event ::events/change
:subscription editing-company}]]]]
[horizontal-field
[:label.label "Bank Accounts"]
[:div.control
[:ul
(for [{:keys [number check-number id]} (:bank-accounts editing-company)]
^{:key id} [:li number " - " check-number])]]]
(when (:saving? editing-company) [:div.is-overlay {:style {"backgroundColor" "rgba(150,150,150, 0.5)"}}])]