From e4cafe672d07781c4cfcfa3b9d0e062ce367646c Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Thu, 13 Oct 2016 02:36:33 +0200
Subject: manual refresh triggering

---
 pages/tree.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'pages/tree.tsx')

diff --git a/pages/tree.tsx b/pages/tree.tsx
index ba5f787b4..0d1046b34 100644
--- a/pages/tree.tsx
+++ b/pages/tree.tsx
@@ -25,7 +25,10 @@
 import { IExchangeInfo } from "../lib/wallet/types";
 import { ReserveRecord, Coin, PreCoin, Denomination } from "../lib/wallet/types";
 import { ImplicitStateComponent, StateHolder } from "../lib/components";
-import { getReserves, getExchanges, getCoins, getPreCoins } from "../lib/wallet/wxApi";
+import {
+  getReserves, getExchanges, getCoins, getPreCoins,
+  refresh
+} from "../lib/wallet/wxApi";
 import { prettyAmount, abbrev } from "../lib/wallet/renderHtml";
 
 interface ReserveViewProps {
@@ -101,7 +104,7 @@ class RefreshDialog extends ImplicitStateComponent<RefreshDialogProps> {
     return (
       <div>
         Refresh amount: <input type="text" size={10} />
-        <button>ok</button>
+        <button onClick={() => refresh(this.props.coin.coinPub)}>ok</button>
         <button onClick={() => this.refreshRequested(false)}>cancel</button>
       </div>
       );
-- 
cgit v1.2.3

