a lot of progress on typeaheads, etc.
This commit is contained in:
@@ -34,7 +34,16 @@
|
|||||||
to { -webkit-transform: translateY(-100%); transform:
|
to { -webkit-transform: translateY(-100%); transform:
|
||||||
translateY(-100%); }
|
translateY(-100%); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes flashPrimary {
|
||||||
|
from {
|
||||||
|
background-color: #00d1b2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.live-added {
|
||||||
|
animation: flashPrimary .7s ease both;
|
||||||
|
}
|
||||||
.left-nav {
|
.left-nav {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,5 +8,8 @@
|
|||||||
(def normal-date "MM/dd/yyyy")
|
(def normal-date "MM/dd/yyyy")
|
||||||
|
|
||||||
(defn parse [v format]
|
(defn parse [v format]
|
||||||
(time/from-time-zone (f/parse (f/formatter format) v)
|
(try
|
||||||
(time/time-zone-for-id "America/Los_Angeles")))
|
(time/from-time-zone (f/parse (f/formatter format) v)
|
||||||
|
(time/time-zone-for-id "America/Los_Angeles"))
|
||||||
|
(catch Exception e
|
||||||
|
nil)))
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
[:i.fa.fa-spin.fa-spinner]]]
|
[:i.fa.fa-spin.fa-spinner]]]
|
||||||
(for [{:keys [company checks invoice-number date total outstanding-balance id vendor] :as i} (:invoices @invoice-page)]
|
(for [{:keys [company checks invoice-number date total outstanding-balance id vendor] :as i} (:invoices @invoice-page)]
|
||||||
^{:key id}
|
^{:key id}
|
||||||
[:tr
|
[:tr {:class (:class i)}
|
||||||
(when check-boxes
|
(when check-boxes
|
||||||
[:td [:input.checkbox {:type "checkbox"
|
[:td [:input.checkbox {:type "checkbox"
|
||||||
:checked (if (get checked id)
|
:checked (if (get checked id)
|
||||||
|
|||||||
@@ -206,12 +206,12 @@
|
|||||||
|
|
||||||
(re-frame/reg-event-fx
|
(re-frame/reg-event-fx
|
||||||
::invoice-created
|
::invoice-created
|
||||||
(fn [{:keys [db]} [_ result]]
|
(fn [{:keys [db]} [_ {:keys [add-invoice]}]]
|
||||||
{:dispatch [::events/modal-completed ::new-invoice]
|
{:dispatch [::events/modal-completed ::new-invoice]
|
||||||
:db (-> db
|
:db (-> db
|
||||||
(update-in [::invoice-page :invoices]
|
(update-in [::invoice-page :invoices]
|
||||||
(fn [is]
|
(fn [is]
|
||||||
(into [(:add-invoice result)]
|
(into [(assoc add-invoice :class "live-added")]
|
||||||
is)))
|
is)))
|
||||||
(dissoc ::new-invoice))}))
|
(dissoc ::new-invoice))}))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user