mirror of
https://github.com/jwinterm/grim.git
synced 2026-10-22 07:58:31 +02:00
fix: action repeat tor tx, no resend for tor
This commit is contained in:
@@ -189,9 +189,9 @@ impl WalletTransactions {
|
||||
.show();
|
||||
});
|
||||
}
|
||||
|
||||
// Draw button to repeat transaction action or resend with tor.
|
||||
if tx.action_error.is_some() || rebroadcast || tx.can_resend_tor() {
|
||||
|
||||
// Draw button to repeat transaction action.
|
||||
if tx.can_repeat_action() || rebroadcast {
|
||||
Self::tx_repeat_button_ui(ui, CornerRadius::default(), tx, wallet, rebroadcast);
|
||||
}
|
||||
});
|
||||
@@ -459,7 +459,7 @@ impl WalletTransactions {
|
||||
TxLogEntryType::TxSentCancelled => Colors::inactive_text(),
|
||||
TxLogEntryType::TxReverted => Colors::inactive_text(),
|
||||
};
|
||||
ui.label(RichText::new(status_text).size(15.0).color(status_color));
|
||||
View::ellipsize_text(ui, status_text, 15.0, status_color);
|
||||
|
||||
// Setup transaction time.
|
||||
let tx_time = View::format_time(tx.data.creation_ts.timestamp());
|
||||
|
||||
@@ -22,7 +22,7 @@ use crate::gui::platform::PlatformCallbacks;
|
||||
use crate::gui::views::wallets::wallet::txs::WalletTransactions;
|
||||
use crate::gui::views::{CameraContent, FilePickContent, FilePickContentType, Modal, QrCodeContent, View};
|
||||
use crate::gui::Colors;
|
||||
use crate::wallet::types::{WalletTask, WalletTransaction};
|
||||
use crate::wallet::types::{WalletTask, WalletTransaction, WalletTransactionAction};
|
||||
use crate::wallet::Wallet;
|
||||
|
||||
/// Transaction information [`Modal`] content.
|
||||
@@ -274,7 +274,7 @@ impl WalletTransactionContent {
|
||||
}
|
||||
|
||||
// Draw button to repeat transaction action.
|
||||
if tx.action_error.is_some() || rebroadcast || tx.can_resend_tor() {
|
||||
if tx.can_repeat_action() || rebroadcast {
|
||||
let r = if tx.can_finalize() || tx.can_cancel() {
|
||||
CornerRadius::default()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user