From 0792ad5ea5229f34ae13113ad82ac710d14be5d6 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 2 Jul 2018 16:39:22 +0300 Subject: [PATCH] move filters to button --- src/cljs/status_dapp/core.cljs | 1 - src/cljs/status_dapp/views.cljs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cljs/status_dapp/core.cljs b/src/cljs/status_dapp/core.cljs index 3f94542..fbf8a50 100644 --- a/src/cljs/status_dapp/core.cljs +++ b/src/cljs/status_dapp/core.cljs @@ -19,6 +19,5 @@ (defn ^:export init [] (re-frame/dispatch-sync [:initialize-db]) (re-frame/dispatch [:request-web3-async-data]) - (re-frame/dispatch [:check-filters]) (dev-setup) (mount-root)) \ No newline at end of file diff --git a/src/cljs/status_dapp/views.cljs b/src/cljs/status_dapp/views.cljs index 756ef01..12bc412 100644 --- a/src/cljs/status_dapp/views.cljs +++ b/src/cljs/status_dapp/views.cljs @@ -53,7 +53,9 @@ [react/text {:selectable true} (str "Mining new contract in tx: " tx-hash)]] :else - [ui/button "Deploy simple contract" #(re-frame/dispatch [:deploy-contract (str (first accounts))])])])) + [ui/button "Deploy simple contract" #(re-frame/dispatch [:deploy-contract (str (first accounts))])]) + [react/view {:style {:margin-top 30}} + [ui/button "Test filters" #(re-frame/dispatch [:check-filters])]]])) (defview web3-view [] (letsubs [{:keys [api node network ethereum whisper accounts syncing gas-price