mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-13 18:28:55 +00:00
txs: cancelling status
This commit is contained in:
@@ -71,6 +71,7 @@ wallets:
|
||||
tx_receiving: Receiving
|
||||
tx_confirming: Awaiting confirmation
|
||||
tx_canceled: Canceled
|
||||
tx_cancelling: Cancelling
|
||||
tx_finalizing: Finalizing
|
||||
tx_confirmed: Confirmed
|
||||
txs: Transactions
|
||||
|
||||
@@ -71,6 +71,7 @@ wallets:
|
||||
tx_receiving: Получение
|
||||
tx_confirming: Ожидает подтверждения
|
||||
tx_canceled: Отменено
|
||||
tx_cancelling: Отмена
|
||||
tx_finalizing: Завершение
|
||||
tx_confirmed: Подтверждено
|
||||
txs: Транзакции
|
||||
|
||||
@@ -365,15 +365,25 @@ impl WalletTransactions {
|
||||
} else if tx.posting {
|
||||
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_finalizing"))
|
||||
} else {
|
||||
match tx.data.tx_type {
|
||||
TxLogEntryType::TxReceived => {
|
||||
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_receiving"))
|
||||
},
|
||||
TxLogEntryType::TxSent => {
|
||||
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_sending"))
|
||||
},
|
||||
_ => {
|
||||
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_confirmed"))
|
||||
if tx.cancelling {
|
||||
format!("{} {}", DOTS_THREE_CIRCLE, t!("wallets.tx_cancelling"))
|
||||
} else {
|
||||
match tx.data.tx_type {
|
||||
TxLogEntryType::TxReceived => {
|
||||
format!("{} {}",
|
||||
DOTS_THREE_CIRCLE,
|
||||
t!("wallets.tx_receiving"))
|
||||
},
|
||||
TxLogEntryType::TxSent => {
|
||||
format!("{} {}",
|
||||
DOTS_THREE_CIRCLE,
|
||||
t!("wallets.tx_sending"))
|
||||
},
|
||||
_ => {
|
||||
format!("{} {}",
|
||||
DOTS_THREE_CIRCLE,
|
||||
t!("wallets.tx_confirmed"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user