Supports changing from paid invoices

This commit is contained in:
Bryce Covert
2018-11-01 17:52:43 -07:00
parent efe1ae086e
commit 23ba7a79f1
5 changed files with 252 additions and 130 deletions

View File

@@ -169,7 +169,7 @@
:aria-haspopup true
:tab-index "0"
#_#_:on-blur (delayed-dispatch [::toggle-expense-accounts id])
:on-blur (delayed-dispatch [::toggle-expense-accounts id])
:on-focus (dispatch-event [::toggle-expense-accounts id])
} "Accounts"]]
[:div.dropdown-menu {:role "menu"}
@@ -181,7 +181,7 @@
[:hr.dropdown-divider]
(when expense-event
[:a.dropdown-item.is-primary {:on-click (dispatch-event (conj expense-event id))} "Change"])]]])
[:a.dropdown-item.is-primary {:on-click (dispatch-event (conj expense-event i))} "Change"])]]])
[:span {:style {:margin-left "1em"}}]
(when on-edit-invoice
[:button.button {:on-click (fn [] (on-edit-invoice i))} [:span.icon [:i.fa.fa-pencil]]])