Merge #1769: Add alias to confirmation message of delete wallet modal
612608616b8ab448b1fcfebabf33bcfeb41e5807 Add alias to confirmation message of delete wallet modal (edouardparis) Pull request description: close #1763 ACKs for top commit: jp1ac4: tACK 612608616b8ab448b1fcfebabf33bcfeb41e5807. Tree-SHA512: aa5e578db9b750a111d5ed148bf1e883aa6a20a6d3e30728f0f9c831101721d6067f2165e83e9d9e91d0c72c44872e63d27962c6a91c9191346fac728f2a42b4
This commit is contained in:
commit
a6e41ab471
@ -485,10 +485,18 @@ impl DeleteWalletModal {
|
||||
));
|
||||
}
|
||||
// Use separate `Row`s for help text in order to have better spacing.
|
||||
let help_text_1 = format!(
|
||||
"Are you sure you want to delete the configuration and all associated data for the wallet Liana-{}?",
|
||||
&self.wallet_settings.descriptor_checksum,
|
||||
);
|
||||
let help_text_1 = if let Some(alias) = &self.wallet_settings.alias {
|
||||
format!(
|
||||
"Are you sure you want to delete the configuration and all associated data for the wallet {} (Liana-{})?",
|
||||
alias,
|
||||
self.wallet_settings.descriptor_checksum
|
||||
)
|
||||
} else {
|
||||
format!(
|
||||
"Are you sure you want to delete the configuration and all associated data for the wallet Liana-{}?",
|
||||
&self.wallet_settings.descriptor_checksum,
|
||||
)
|
||||
};
|
||||
let help_text_2 = match self.internal_bitcoind {
|
||||
Some(true) => Some("(The Liana-managed Bitcoin node for this network will not be affected by this action.)"),
|
||||
Some(false) => None,
|
||||
@ -501,10 +509,17 @@ impl DeleteWalletModal {
|
||||
Column::new()
|
||||
.spacing(10)
|
||||
.push(Container::new(
|
||||
h4_bold(format!(
|
||||
"Delete configuration for Liana-{}",
|
||||
&self.wallet_settings.descriptor_checksum
|
||||
))
|
||||
h4_bold(if let Some(alias) = &self.wallet_settings.alias {
|
||||
format!(
|
||||
"Delete configuration for {} (Liana-{})",
|
||||
alias, &self.wallet_settings.descriptor_checksum
|
||||
)
|
||||
} else {
|
||||
format!(
|
||||
"Delete configuration for Liana-{}",
|
||||
&self.wallet_settings.descriptor_checksum
|
||||
)
|
||||
})
|
||||
.style(theme::text::destructive)
|
||||
.width(Length::Fill),
|
||||
))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user