diff --git a/gui/src/app/state/spend/mod.rs b/gui/src/app/state/spend/mod.rs index 31a585a5..3cea189d 100644 --- a/gui/src/app/state/spend/mod.rs +++ b/gui/src/app/state/spend/mod.rs @@ -126,6 +126,7 @@ impl State for CreateSpendPanel { let mut targets = HashSet::::new(); for coin in coins { targets.insert(LabelItem::OutPoint(coin.outpoint)); + targets.insert(LabelItem::Txid(coin.outpoint.txid)); } daemon2.get_labels(&targets).map_err(|e| e.into()) }, diff --git a/gui/src/app/view/spend/mod.rs b/gui/src/app/view/spend/mod.rs index 8c34ad5e..cb9b6552 100644 --- a/gui/src/app/view/spend/mod.rs +++ b/gui/src/app/view/spend/mod.rs @@ -361,6 +361,19 @@ fn coin_list_view<'a>( .push( if let Some(label) = coins_labels.get(&coin.outpoint.to_string()) { Container::new(p1_bold(label)).width(Length::Fill) + } else if let Some(label) = coins_labels.get(&coin.outpoint.txid.to_string()) { + Container::new( + Row::new() + .spacing(5) + .push( + // It it not possible to know if a coin is a + // change coin or not so for now, From is + // enough + p1_bold("From").style(color::GREY_3), + ) + .push(p1_bold(label)), + ) + .width(Length::Fill) } else { Container::new(p1_bold("")).width(Length::Fill) },