mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-03 20:35:17 +00:00
Past swaps: show the amount of BTCs that we are waiting for.
This commit is contained in:
parent
b2630f6f21
commit
d63cb0dc2d
3 changed files with 9 additions and 5 deletions
|
@ -1741,7 +1741,7 @@
|
||||||
"Processing...": "Processing...",
|
"Processing...": "Processing...",
|
||||||
"View Past Swaps": "View Past Swaps",
|
"View Past Swaps": "View Past Swaps",
|
||||||
"Remove address": "Remove address",
|
"Remove address": "Remove address",
|
||||||
"Waiting for BTC": "Waiting for BTC",
|
"Waiting %sendAmount% BTC": "Waiting %sendAmount% BTC",
|
||||||
"Waiting to receive your bitcoin.": "Waiting to receive your bitcoin.",
|
"Waiting to receive your bitcoin.": "Waiting to receive your bitcoin.",
|
||||||
"Sending LBC": "Sending LBC",
|
"Sending LBC": "Sending LBC",
|
||||||
"Bitcoin received. Sending your LBC.": "Bitcoin received. Sending your LBC.",
|
"Bitcoin received. Sending your LBC.": "Bitcoin received. Sending your LBC.",
|
||||||
|
|
|
@ -261,8 +261,8 @@ function WalletSwap(props: Props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStatusStr(btcAddress) {
|
function getStatusStr(coinSwap: CoinSwapInfo) {
|
||||||
const status = statusMap[btcAddress];
|
const status = statusMap[coinSwap.sendAddress];
|
||||||
if (!status) {
|
if (!status) {
|
||||||
return '---';
|
return '---';
|
||||||
}
|
}
|
||||||
|
@ -270,7 +270,7 @@ function WalletSwap(props: Props) {
|
||||||
let msg;
|
let msg;
|
||||||
switch (status.Status) {
|
switch (status.Status) {
|
||||||
case BTC_API_STATUS_PENDING:
|
case BTC_API_STATUS_PENDING:
|
||||||
msg = __('Waiting for BTC');
|
msg = __('Waiting %sendAmount% BTC', { sendAmount: coinSwap.sendAmount });
|
||||||
break;
|
break;
|
||||||
case BTC_API_STATUS_PROCESSING:
|
case BTC_API_STATUS_PROCESSING:
|
||||||
msg = __('Sending LBC');
|
msg = __('Sending LBC');
|
||||||
|
@ -442,7 +442,7 @@ function WalletSwap(props: Props) {
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td>{isRefreshingStatus ? '...' : getStatusStr(x.sendAddress)}</td>
|
<td>{isRefreshingStatus ? '...' : getStatusStr(x)}</td>
|
||||||
<td>
|
<td>
|
||||||
<Button
|
<Button
|
||||||
button="link"
|
button="link"
|
||||||
|
|
|
@ -158,6 +158,10 @@ th {
|
||||||
tr {
|
tr {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
td:nth-of-type(2) {
|
||||||
|
font-size: var(--font-small);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table--rewards {
|
.table--rewards {
|
||||||
|
|
Loading…
Add table
Reference in a new issue