From 064ad2b45cb80d542bd02c79bd0431a40300f57e Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 15 Apr 2022 08:03:30 -0700 Subject: [PATCH] trying something different. --- .../views/pages/admin/yodlee2/form.cljs | 2 +- .../views/pages/admin/yodlee2/table.cljs | 28 ------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/cljs/auto_ap/views/pages/admin/yodlee2/form.cljs b/src/cljs/auto_ap/views/pages/admin/yodlee2/form.cljs index c992af2b..2971d06c 100644 --- a/src/cljs/auto_ap/views/pages/admin/yodlee2/form.cljs +++ b/src/cljs/auto_ap/views/pages/admin/yodlee2/form.cljs @@ -13,7 +13,7 @@ #js {"fastLinkURL" (:url authentication) "accessToken" (:token authentication) "params" #js { "configName" "Aggregation" - "providerAccountId" (str provider-account-id) + "providerAccountId" (js/parseInt provider-account-id) "flow" "edit"}} "fa-modal-spot") diff --git a/src/cljs/auto_ap/views/pages/admin/yodlee2/table.cljs b/src/cljs/auto_ap/views/pages/admin/yodlee2/table.cljs index ffee15fa..d6cdf6d8 100644 --- a/src/cljs/auto_ap/views/pages/admin/yodlee2/table.cljs +++ b/src/cljs/auto_ap/views/pages/admin/yodlee2/table.cljs @@ -131,31 +131,3 @@ :icon "fa-refresh"}] [buttons/fa-icon {:event [::delete-requested (:id c)] :icon "fa-times"}]]]])]]])) - -#_(defn yodlee-link-button [] - [:div - (let [authentication @(re-frame/subscribe [::authentication]) - status @(re-frame/subscribe [::status/single ::authenticating]) - client-code (:code @(re-frame/subscribe [::subs/client]))] - (cond (and authentication client-code) - [:div - "Authentication successful!" - [:div#fa-spot] - [:button.button.is-primary {:on-click (fn [] - (.open (.-fastlink js/window) - #js {"fastLinkURL" (:url authentication) - "accessToken" (:token authentication) - "params" #js { "configName" "Aggregation"}} - - "fa-spot") - )} - [:span [:span.icon [:i.fa.fa-external-link]] " Go to yodlee"]]] - - client-code - [:button.button.is-primary {:disabled (status/disabled-for status) - :class (status/class-for status) - :on-click (dispatch-event [::authenticate-with-yodlee client-code])} - "Authenticate with Yodlee (" client-code ")"] - - :else - nil))])