diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.tsx | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 10ca67663..a5fa66cbe 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -278,7 +278,7 @@ function TransactionTemplate({ <WarningBox> <div style={{ justifyContent: "center", lineHeight: "25px" }}> <i18n.Translate>This transaction is not completed</i18n.Translate> - <Link onClick={onRetry} style={{padding: 0}}> + <Link onClick={onRetry} style={{ padding: 0 }}> <SvgIcon title={i18n.str`Retry`} dangerouslySetInnerHTML={{ __html: refreshIcon }} @@ -485,7 +485,7 @@ export function TransactionView({ </span> : <span><i18n.Translate> - Now the payment service provider is waiting for <Amount value={raw} /> to + Now the payment service provider is waiting for <Amount value={raw} /> to be transferred. Use the information below to complete the operation by making a wire transfer from your bank account. </i18n.Translate></span>} @@ -1026,6 +1026,38 @@ export function TransactionView({ ); } + if (transaction.type === TransactionType.DenomLoss) { + return ( + <TransactionTemplate + transaction={transaction} + onDelete={onDelete} + onRetry={onRetry} + onAbort={onAbort} + onResume={onResume} + onSuspend={onSuspend} + onCancel={onCancel} + > + <Header + timestamp={transaction.timestamp} + type={i18n.str`Debit`} + total={effective} + kind="negative" + > + <i18n.Translate>Lost</i18n.Translate> + </Header> + + <Part + title={i18n.str`Exchange`} + text={transaction.exchangeBaseUrl as TranslatedString} + kind="neutral" + /> + <Part + title={i18n.str`Reason`} + text={transaction.lossEventType as TranslatedString} + /> + </TransactionTemplate> + ); + } if (transaction.type === TransactionType.Recoup) { throw Error("recoup transaction not implemented"); } |