more vendor replacement.

This commit is contained in:
2022-04-11 10:16:49 -07:00
parent 8bba073e07
commit e4da1376f8
3 changed files with 23 additions and 22 deletions

View File

@@ -7,7 +7,6 @@
[auto-ap.views.components.invoices.side-bar :refer [invoices-side-bar]]
[auto-ap.views.utils :refer [dispatch-event with-user ->%]]
[auto-ap.utils :refer [by]]
[auto-ap.views.components.typeahead :refer [typeahead-v3]]
[auto-ap.views.components.invoice-table :refer [invoice-table] :as invoice-table]
[cljs.reader :as edn]
[auto-ap.status :as status]
@@ -18,7 +17,7 @@
[clojure.set :as set]
[auto-ap.effects.forward :as forward]
[goog.string :as gstring]
))
[auto-ap.views.components.typeahead.vendor :refer [search-backed-typeahead]]))
(defn dropzone []
@@ -57,15 +56,16 @@
[:p.control
[:a.button.is-static "Force vendor"]]
[:div.control {:style {:width "400px"}}
[typeahead-v3 {:entities-by-id @(re-frame/subscribe [::subs/vendors-by-id])
:entity-index @(re-frame/subscribe [::subs/searchable-vendors-index])
:entity->text :name
:name "vendor"
:type "typeahead-v3"
:on-change (fn [v]
(reset! vendor v))
:value @vendor}]]
]
[search-backed-typeahead {:search-query (fn [i]
[:search_vendor
{:query i}
[:name :id]])
:type "typeahead-v3"
:name "vendor"
:on-change (fn [v]
(reset! vendor v))
:value @vendor}]]]
[:div.tile.notification
[:div.has-text-centered {:style {:padding "80px 0px" :width "100%"}}
[:span