diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-22 23:21:41 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-22 23:21:49 +0100 |
commit | 2072705962b54dfbecc3938c279b532048b21d35 (patch) | |
tree | 00b644930673f7883d097f9f5ba17dcfd75ee6f3 | |
parent | 456fbb9590ccbbcfbac216b24e2af78c901560c4 (diff) |
render missing history events
-rw-r--r-- | extension/popup/popup.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extension/popup/popup.tsx b/extension/popup/popup.tsx index f7f57c48c..11f722d4b 100644 --- a/extension/popup/popup.tsx +++ b/extension/popup/popup.tsx @@ -151,15 +151,23 @@ function retryPayment(url, contractHash) { function formatHistoryItem(historyItem) { const d = historyItem.detail; const t = historyItem.timestamp; + console.log("hist item", historyItem); switch (historyItem.type) { case "create-reserve": return m("p", i18n.parts`Created reserve (${abbrevKey(d.reservePub)}) of ${formatAmount( d.requestedAmount)} at ${formatTimestamp( t)}`); + case "confirm-reserve": + return m("p", + i18n.parts`Bank confirmed reserve (${abbrevKey(d.reservePub)}) at ${formatTimestamp( + t)}`); case "withdraw": return m("p", i18n`Withdraw at ${formatTimestamp(t)}`); + case "depleted-reserve": + return m("p", + i18n.parts`Wallet depleted reserve (${abbrevKey(d.reservePub)}) at ${formatTimestamp(t)}`); case "pay": let url = substituteFulfillmentUrl(d.fulfillmentUrl, {H_contract: d.contractHash}); |