This commit is contained in:
2021-01-26 08:19:48 -08:00
parent d50f889099
commit c3bea47093
6 changed files with 19 additions and 11 deletions

View File

@@ -135,7 +135,7 @@
(re-frame/reg-event-fx
::set-active-page
(fn [{:keys [db]} [_ handler params]]
(if (and (not= :login handler) (not (:user db)))
{:redirect "/login"
:db (assoc db :active-page :login

View File

@@ -6,7 +6,7 @@
[re-frame.core :as re-frame]))
(defn- parse-url [url]
(println url)
(println "parsing url" url)
(bidi/match-route routes/routes url))
(defn- dispatch-route [matched-route]

View File

@@ -15,7 +15,7 @@
(def invoice-read [:id :total :outstanding-balance :date :due :invoice-number :status
:scheduled-payment
[:client [:id :name :locations]]
[:payments [:amount [:payment [:amount :s3_url :check_number ]]]]
[:payments [:amount [:payment [:id :amount :s3_url :check_number ]]]]
[:vendor [:id :name]]
[:expense_accounts [:amount :id
:location