everything is audited.
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
highlighted (r/atom nil)
|
||||
]
|
||||
(r/create-class
|
||||
{:reagent-render (fn [{:keys [matches on-change disabled match->text field value class not-found-description include-keys]}]
|
||||
{:reagent-render (fn [{:keys [matches on-change disabled match->text field value class not-found-description include-keys style]}]
|
||||
(let [select (fn [entity]
|
||||
(when on-change
|
||||
(if (= :not-found entity)
|
||||
@@ -142,7 +142,7 @@
|
||||
text (or (when value (match->text value)) @text)
|
||||
valid-matches (get-valid-entity-matches matches not-found-description not-found-value text match->text)]
|
||||
|
||||
[:div.typeahead
|
||||
[:div.typeahead {:style style}
|
||||
(if disabled
|
||||
|
||||
^{:key (str "typeahead" text) } [:input.input {:disabled "disabled" :value text} ]
|
||||
|
||||
@@ -139,10 +139,12 @@
|
||||
[multi-field {:type "multi-field"
|
||||
:field [:client-overrides]
|
||||
:template [[typeahead-entity {:matches @(re-frame/subscribe [::subs/clients])
|
||||
:style {:width "20em"}
|
||||
:match->text :name
|
||||
:type "typeahead"
|
||||
:field [:client]}]
|
||||
[:input.input {:type "text"
|
||||
:style {:width "20em"}
|
||||
:placeholder "Bubblegum"
|
||||
:field [:name]}]
|
||||
]}])
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
::can-submit
|
||||
:<- [::forms/form ::form]
|
||||
(fn [{:keys [data status]} _]
|
||||
(println (s/explain ::entity/transaction-rule data))
|
||||
(s/valid? ::entity/transaction-rule data)))
|
||||
|
||||
(re-frame/reg-sub
|
||||
|
||||
Reference in New Issue
Block a user