aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-13 02:36:33 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-13 02:36:33 +0200
commite4cafe672d07781c4cfcfa3b9d0e062ce367646c (patch)
tree7ad8b213a898236dee02a140207af301e8d400e4 /pages
parent250069d86097a966366d21e447f6c3fcc70659bd (diff)
manual refresh triggering
Diffstat (limited to 'pages')
-rw-r--r--pages/tree.tsx7
1 files changed, 5 insertions, 2 deletions
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>
);