render missing history events
This commit is contained in:
parent
456fbb9590
commit
2072705962
@ -151,15 +151,23 @@ function retryPayment(url, contractHash) {
|
|||||||
function formatHistoryItem(historyItem) {
|
function formatHistoryItem(historyItem) {
|
||||||
const d = historyItem.detail;
|
const d = historyItem.detail;
|
||||||
const t = historyItem.timestamp;
|
const t = historyItem.timestamp;
|
||||||
|
console.log("hist item", historyItem);
|
||||||
switch (historyItem.type) {
|
switch (historyItem.type) {
|
||||||
case "create-reserve":
|
case "create-reserve":
|
||||||
return m("p",
|
return m("p",
|
||||||
i18n.parts`Created reserve (${abbrevKey(d.reservePub)}) of ${formatAmount(
|
i18n.parts`Created reserve (${abbrevKey(d.reservePub)}) of ${formatAmount(
|
||||||
d.requestedAmount)} at ${formatTimestamp(
|
d.requestedAmount)} at ${formatTimestamp(
|
||||||
t)}`);
|
t)}`);
|
||||||
|
case "confirm-reserve":
|
||||||
|
return m("p",
|
||||||
|
i18n.parts`Bank confirmed reserve (${abbrevKey(d.reservePub)}) at ${formatTimestamp(
|
||||||
|
t)}`);
|
||||||
case "withdraw":
|
case "withdraw":
|
||||||
return m("p",
|
return m("p",
|
||||||
i18n`Withdraw at ${formatTimestamp(t)}`);
|
i18n`Withdraw at ${formatTimestamp(t)}`);
|
||||||
|
case "depleted-reserve":
|
||||||
|
return m("p",
|
||||||
|
i18n.parts`Wallet depleted reserve (${abbrevKey(d.reservePub)}) at ${formatTimestamp(t)}`);
|
||||||
case "pay":
|
case "pay":
|
||||||
let url = substituteFulfillmentUrl(d.fulfillmentUrl,
|
let url = substituteFulfillmentUrl(d.fulfillmentUrl,
|
||||||
{H_contract: d.contractHash});
|
{H_contract: d.contractHash});
|
||||||
|
Loading…
Reference in New Issue
Block a user