txs: do not show only cancel button when wallet was not loaded

This commit is contained in:
ardocrat 2024-05-19 14:26:41 +03:00
parent 11236bd8b4
commit 693062c367

View file

@ -334,8 +334,7 @@ impl WalletTransactions {
} }
// Draw finalization button for tx that can be finalized. // Draw finalization button for tx that can be finalized.
if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && tx.can_finalize && if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && tx.can_finalize {
wallet_loaded {
let (icon, color) = if !can_show_info && self.tx_info_finalize { let (icon, color) = if !can_show_info && self.tx_info_finalize {
(FILE_TEXT, None) (FILE_TEXT, None)
} else { } else {
@ -356,7 +355,7 @@ impl WalletTransactions {
} }
// Draw button to repost transaction. // Draw button to repost transaction.
if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) && wallet_loaded && if ((!can_show_info && !self.tx_info_finalizing) || can_show_info) &&
tx.can_repost(data) { tx.can_repost(data) {
View::item_button(ui, View::item_button(ui,
Rounding::default(), Rounding::default(),