[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 03/03: tell the user that refund is pending
From: |
gnunet |
Subject: |
[taler-wallet-core] 03/03: tell the user that refund is pending |
Date: |
Mon, 20 Feb 2023 17:24:38 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 7bb81a008b7148cfd3fd656f858e4cbd755531ac
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Feb 20 13:24:24 2023 -0300
tell the user that refund is pending
---
.../src/wallet/Transaction.tsx | 38 +++++++++++++---------
1 file changed, 22 insertions(+), 16 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 5fabfcd20..b9b1aa198 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -607,29 +607,35 @@ export function TransactionView({
) : undefined}
{pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && (
<InfoBox>
- <i18n.Translate>
- Merchant created a refund for this order but was not
automatically
- picked up.
- </i18n.Translate>
+ {transaction.refundQueryActive ? (
+ <i18n.Translate>Refund is in progress.</i18n.Translate>
+ ) : (
+ <i18n.Translate>
+ Merchant created a refund for this order but was not
+ automatically picked up.
+ </i18n.Translate>
+ )}
<Part
title={i18n.str`Offer`}
text={<Amount value={pendingRefund} />}
kind="positive"
/>
- <div>
- <div />
+ {transaction.refundQueryActive ? undefined : (
<div>
- <Button
- variant="contained"
- onClick={safely(
- () => onRefund(transaction.proposalId),
- i18n.str`Could not refund`,
- )}
- >
- <i18n.Translate>Accept</i18n.Translate>
- </Button>
+ <div />
+ <div>
+ <Button
+ variant="contained"
+ onClick={safely(
+ () => onRefund(transaction.proposalId),
+ i18n.str`Could not refund`,
+ )}
+ >
+ <i18n.Translate>Accept</i18n.Translate>
+ </Button>
+ </div>
</div>
- </div>
+ )}
</InfoBox>
)}
<Part
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.