minor ui cleanup.

This commit is contained in:
Bryce Covert
2019-04-17 09:57:00 -07:00
parent fa5401b9a0
commit c51d235a36
4 changed files with 6 additions and 13 deletions

View File

@@ -153,7 +153,7 @@
.slide-in-right { .slide-in-right {
animation: grow-width 0.5s ease both; animation: grow-width 0.5s ease both;
} }
.slide-in-right div { .slide-in-right > div {
width: 1000px; width: 1000px;
overflow: hidden; overflow: hidden;
} }

View File

@@ -112,11 +112,11 @@
:asc asc} :asc asc}
"Date"] "Date"]
[sorted-column {:on-sort opc [sorted-column {:on-sort opc
:style {:width "8em" :cursor "pointer"} :style {:width "5em" :cursor "pointer"}
:sort-key "location" :sort-key "location"
:sort-by sort-by :sort-by sort-by
:asc asc} :asc asc}
"Location"] "Loc"]
[sorted-column {:on-sort opc [sorted-column {:on-sort opc
:style {:width "8em" :cursor "pointer"} :style {:width "8em" :cursor "pointer"}
:sort-key "total" :sort-key "total"

View File

@@ -104,7 +104,7 @@
(re-frame/reg-event-db (re-frame/reg-event-db
::adding ::adding
(fn [db [_ new]] (fn [db [_ new]]
(-> db (forms/start-form ::form (assoc new :expense-accounts [{:id (str "new-" (random-uuid))}]))))) (-> db (forms/start-form ::form (assoc new :expense-accounts [{:amount 0 :id (str "new-" (random-uuid))}])))))
(re-frame/reg-event-db (re-frame/reg-event-db
::editing ::editing

View File

@@ -128,7 +128,7 @@
(fn [db _] (fn [db _]
(let [{:keys [checked invoices]} (get-in db [::invoice-page])] (let [{:keys [checked invoices]} (get-in db [::invoice-page])]
(-> db (-> db
(forms/stop-form ::new-invoice) (forms/stop-form ::form/form)
(update-in [::invoice-page :print-checks-shown?] #(not %) ) (update-in [::invoice-page :print-checks-shown?] #(not %) )
(assoc-in [::advanced-print-checks] {:shown? true (assoc-in [::advanced-print-checks] {:shown? true
:bank-account-id (:id (first @(re-frame/subscribe [::subs/bank-accounts]))) :bank-account-id (:id (first @(re-frame/subscribe [::subs/bank-accounts])))
@@ -146,7 +146,7 @@
{:dispatch [::events/modal-status ::handwrite-checks {:visible? true}] {:dispatch [::events/modal-status ::handwrite-checks {:visible? true}]
:db (-> db :db (-> db
(forms/stop-form ::new-invoice) (forms/stop-form ::form/form)
(update-in [::invoice-page :print-checks-shown?] #(not %) ) (update-in [::invoice-page :print-checks-shown?] #(not %) )
(assoc-in [::handwrite-checks] {:bank-account-id (:id (first @(re-frame/subscribe [::subs/real-bank-accounts]))) (assoc-in [::handwrite-checks] {:bank-account-id (:id (first @(re-frame/subscribe [::subs/real-bank-accounts])))
:invoices invoices } ))}))) :invoices invoices } ))})))
@@ -287,13 +287,6 @@
:location (first (:locations @(re-frame/subscribe [::subs/client])))}]})) :location (first (:locations @(re-frame/subscribe [::subs/client])))}]}))
(re-frame/reg-event-fx (re-frame/reg-event-fx
::unvoid-invoice ::unvoid-invoice
(fn [{:keys [db]} [_ {id :id}]] (fn [{:keys [db]} [_ {id :id}]]