a lot of progress on typeaheads, etc.

This commit is contained in:
Bryce Covert
2018-05-23 11:35:58 -07:00
parent e445adec02
commit bc10b35f0b
4 changed files with 17 additions and 5 deletions

View File

@@ -34,7 +34,16 @@
to { -webkit-transform: translateY(-100%); transform:
translateY(-100%); }
}
@keyframes flashPrimary {
from {
background-color: #00d1b2;
}
}
tr.live-added {
animation: flashPrimary .7s ease both;
}
.left-nav {
width: 300px;
}

View File

@@ -8,5 +8,8 @@
(def normal-date "MM/dd/yyyy")
(defn parse [v format]
(time/from-time-zone (f/parse (f/formatter format) v)
(time/time-zone-for-id "America/Los_Angeles")))
(try
(time/from-time-zone (f/parse (f/formatter format) v)
(time/time-zone-for-id "America/Los_Angeles"))
(catch Exception e
nil)))

View File

@@ -90,7 +90,7 @@
[:i.fa.fa-spin.fa-spinner]]]
(for [{:keys [company checks invoice-number date total outstanding-balance id vendor] :as i} (:invoices @invoice-page)]
^{:key id}
[:tr
[:tr {:class (:class i)}
(when check-boxes
[:td [:input.checkbox {:type "checkbox"
:checked (if (get checked id)

View File

@@ -206,12 +206,12 @@
(re-frame/reg-event-fx
::invoice-created
(fn [{:keys [db]} [_ result]]
(fn [{:keys [db]} [_ {:keys [add-invoice]}]]
{:dispatch [::events/modal-completed ::new-invoice]
:db (-> db
(update-in [::invoice-page :invoices]
(fn [is]
(into [(:add-invoice result)]
(into [(assoc add-invoice :class "live-added")]
is)))
(dissoc ::new-invoice))}))