mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-18 02:07:41 +00:00
Merge pull request 'TxInfoDialog: set blockheight to unconfirmed for mempool txs' (#220) from tobtoht/feather:tx_info_blockheight into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/220
This commit is contained in:
commit
ea81b308f7
1 changed files with 5 additions and 1 deletions
|
@ -30,9 +30,13 @@ TransactionInfoDialog::TransactionInfoDialog(Wallet *wallet, TransactionInfo *tx
|
|||
ui->label_txKey->setText(txKey);
|
||||
}
|
||||
|
||||
QString blockHeight = QString::number(txInfo->blockHeight());
|
||||
if (blockHeight == "0")
|
||||
blockHeight = "Unconfirmed";
|
||||
|
||||
ui->label_status->setText(QString("Status: %1 confirmations").arg(txInfo->confirmations()));
|
||||
ui->label_date->setText(QString("Date: %1").arg(txInfo->timestamp().toString("yyyy-MM-dd HH:mm")));
|
||||
ui->label_blockHeight->setText(QString("Block height: %1").arg(txInfo->blockHeight()));
|
||||
ui->label_blockHeight->setText(QString("Block height: %1").arg(blockHeight));
|
||||
|
||||
QString direction = txInfo->direction() == TransactionInfo::Direction_In ? "received" : "sent";
|
||||
ui->label_amount->setText(QString("Amount %1: %2").arg(direction, txInfo->displayAmount()));
|
||||
|
|
Loading…
Reference in a new issue