simple tweaks.

This commit is contained in:
Bryce Covert
2020-04-17 21:50:31 -07:00
parent a90a60f210
commit 46809abaf9
4 changed files with 12 additions and 6 deletions

View File

@@ -32,7 +32,6 @@
(re-frame/reg-event-fx
::toggle-expense-accounts
(fn [{:keys [db] } [_ invoice-id]]
(println "toggling")
{:db
(update-in db [::visible-expense-accounts] (fn [i] (if (= i invoice-id) nil invoice-id) ))}))

View File

@@ -17,6 +17,11 @@
[:div
[:div [:p.menu-label "Type"]
[:ul.menu-list
[:li.menu-item
[:a.item {:href (bidi/path-for routes/routes :invoices)
:class [(active-when ap = :invoices)]}
[:span {:class "icon icon-accounting-invoice-mail" :style {:font-size "25px"}}]
[:span {:class "name"} "All Invoices"]]]
[:li.menu-item
[:a.item {:href (bidi/path-for routes/routes :unpaid-invoices)
:class [(active-when ap = :unpaid-invoices)]}