move filters to button

This commit is contained in:
Andrey Shovkoplyas 2018-07-02 16:39:22 +03:00
parent 20d7ecb8e1
commit 0792ad5ea5
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
2 changed files with 3 additions and 2 deletions

View File

@ -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))

View File

@ -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