requires setting status.

This commit is contained in:
Bryce Covert
2019-05-16 08:52:35 -07:00
parent 8845ec9688
commit b488ad6302
2 changed files with 9 additions and 4 deletions

View File

@@ -100,6 +100,7 @@
:dom-lte nil
:dom-gte nil
:vendor nil
:transaction-approval-status :unapproved
:accounts [])))))
(re-frame/reg-event-db

View File

@@ -141,11 +141,15 @@
{:keys [form field raw-field error-notification submit-button ]} transaction-form]
[form {:title "Hello" :edit-completed edit-completed}
(when @(re-frame/subscribe [::subs/is-admin?])
[field "Merchant"
(when (and @(re-frame/subscribe [::subs/is-admin?])
(get-in data [:yodlee-merchant]))
[:div.control
[:p.help "Merchant"]
[:input.input {:type "text"
:field [:yodlee-merchant :name]
:disabled "disabled"}]])
:disabled true
:value (str (get-in data [:yodlee-merchant :name])
" - "
(get-in data [:yodlee-merchant :yodlee-id]))}]])
(when @(re-frame/subscribe [::subs/is-admin?])
[field "Matched Rule"