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 {
animation: grow-width 0.5s ease both;
}
.slide-in-right div {
.slide-in-right > div {
width: 1000px;
overflow: hidden;
}

View File

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

View File

@@ -104,7 +104,7 @@
(re-frame/reg-event-db
::adding
(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
::editing

View File

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