txs: cancelling status

This commit is contained in:
ardocrat 2024-05-04 02:27:38 +03:00
parent df6fafd256
commit 26f82f3cc7
3 changed files with 21 additions and 9 deletions

View file

@ -71,6 +71,7 @@ wallets:
tx_receiving: Receiving tx_receiving: Receiving
tx_confirming: Awaiting confirmation tx_confirming: Awaiting confirmation
tx_canceled: Canceled tx_canceled: Canceled
tx_cancelling: Cancelling
tx_finalizing: Finalizing tx_finalizing: Finalizing
tx_confirmed: Confirmed tx_confirmed: Confirmed
txs: Transactions txs: Transactions

View file

@ -71,6 +71,7 @@ wallets:
tx_receiving: Получение tx_receiving: Получение
tx_confirming: Ожидает подтверждения tx_confirming: Ожидает подтверждения
tx_canceled: Отменено tx_canceled: Отменено
tx_cancelling: Отмена
tx_finalizing: Завершение tx_finalizing: Завершение
tx_confirmed: Подтверждено tx_confirmed: Подтверждено
txs: Транзакции txs: Транзакции

View file

@ -364,16 +364,26 @@ impl WalletTransactions {
format!("{} {}", X_CIRCLE, t!("wallets.tx_canceled")) format!("{} {}", X_CIRCLE, t!("wallets.tx_canceled"))
} else if tx.posting { } else if tx.posting {
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_finalizing")) format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_finalizing"))
} else {
if tx.cancelling {
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_cancelling"))
} else { } else {
match tx.data.tx_type { match tx.data.tx_type {
TxLogEntryType::TxReceived => { TxLogEntryType::TxReceived => {
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_receiving")) format!("{} {}",
DOTS_THREE_CIRCLE,
t!("wallets.tx_receiving"))
}, },
TxLogEntryType::TxSent => { TxLogEntryType::TxSent => {
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_sending")) format!("{} {}",
DOTS_THREE_CIRCLE,
t!("wallets.tx_sending"))
}, },
_ => { _ => {
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_confirmed")) format!("{} {}",
DOTS_THREE_CIRCLE,
t!("wallets.tx_confirmed"))
}
} }
} }
} }