diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-29 15:14:02 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-29 15:14:24 -0300 |
commit | 74dba9506dba104d918c5386e67146f71f07436c (patch) | |
tree | 2d6434f66e2a14a56f0a748733462a0089bdee44 /packages/taler-wallet-webextension/src/components | |
parent | 329b766ae78405e086e7b6f078168bc0c136d317 (diff) | |
download | wallet-core-74dba9506dba104d918c5386e67146f71f07436c.tar.xz |
show wire details when the deposit has been wired
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/TransactionItem.tsx | 54 |
1 files changed, 45 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx index 934a0fe52..7ddaee9f3 100644 --- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx +++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx @@ -76,7 +76,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { subtitle={tx.info.summary} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"P"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Payment in progress` + : undefined + } /> ); case TransactionType.Refund: @@ -89,7 +93,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.info.merchant.name} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"R"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Executing refund...` + : undefined + } /> ); case TransactionType.Tip: @@ -101,7 +109,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={new URL(tx.merchantBaseUrl).hostname} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"T"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Grabbing the tipping...` + : undefined + } /> ); case TransactionType.Refresh: @@ -113,7 +125,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={"Refresh"} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"R"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Refreshing coins...` + : undefined + } /> ); case TransactionType.Deposit: @@ -125,7 +141,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.targetPaytoUri} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"D"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Deposit in progress` + : undefined + } /> ); case TransactionType.PeerPullCredit: @@ -137,7 +157,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.info.summary || "Invoice"} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"I"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Waiting to be paid` + : undefined + } /> ); case TransactionType.PeerPullDebit: @@ -149,7 +173,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.info.summary || "Invoice"} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"I"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Payment in progress` + : undefined + } /> ); case TransactionType.PeerPushCredit: @@ -161,7 +189,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.info.summary || "Transfer"} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"T"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Receiving the transfer` + : undefined + } /> ); case TransactionType.PeerPushDebit: @@ -173,7 +205,11 @@ export function TransactionItem(props: { tx: Transaction }): VNode { title={tx.info.summary || "Transfer"} timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)} iconPath={"T"} - // pending={tx.pending} + pending={ + tx.extendedStatus === ExtendedStatus.Pending + ? i18n.str`Waiting to be received` + : undefined + } /> ); default: { |