From 1e00724a0dcd0d65e6d786a1d8d7cdffc9fe2a85 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 6 Sep 2022 17:17:44 -0300
Subject: listExchangesDetailed to getExchangeDetailedInfo & ageRestriction
 taken from the denoms

---
 .../src/wallet/Transaction.tsx                          | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index 44543c2cd..c1f5861e8 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -167,6 +167,8 @@ export function TransactionView({
     }
   }
 
+  const SHOWING_RETRY_THRESHOLD_SECS = 30;
+
   const { i18n } = useTranslationContext();
 
   function TransactionTemplate({
@@ -174,15 +176,16 @@ export function TransactionView({
   }: {
     children: ComponentChildren;
   }): VNode {
-    const showSend =
-      (transaction.type === TransactionType.PeerPullCredit ||
-        transaction.type === TransactionType.PeerPushDebit) &&
-      !transaction.info.completed;
+    const showSend = false;
+    // (transaction.type === TransactionType.PeerPullCredit ||
+    //   transaction.type === TransactionType.PeerPushDebit) &&
+    //   !transaction.info.completed;
     const showRetry =
       transaction.error !== undefined ||
       transaction.timestamp.t_s === "never" ||
       (transaction.pending &&
-        differenceInSeconds(new Date(), transaction.timestamp.t_s * 1000) > 10);
+        differenceInSeconds(new Date(), transaction.timestamp.t_s * 1000) >
+          SHOWING_RETRY_THRESHOLD_SECS);
 
     return (
       <Fragment>
@@ -624,7 +627,7 @@ export function TransactionView({
           text={transaction.exchangeBaseUrl}
           kind="neutral"
         />
-        {!transaction.info.completed && (
+        {transaction.pending && (
           <Part
             title={<i18n.Translate>URI</i18n.Translate>}
             text={<ShowQrWithCopy text={transaction.talerUri} />}
@@ -710,7 +713,7 @@ export function TransactionView({
           text={transaction.exchangeBaseUrl}
           kind="neutral"
         />
-        {!transaction.info.completed && (
+        {transaction.pending && (
           <Part
             title={<i18n.Translate>URI</i18n.Translate>}
             text={<ShowQrWithCopy text={transaction.talerUri} />}
-- 
cgit v1.2.3

