gui(settings): replace node password by stars(*)
This commit is contained in:
parent
523bcbdb1f
commit
46cb154b94
@ -504,18 +504,23 @@ pub fn bitcoind<'a>(
|
||||
|
||||
let mut col_fields = Column::new();
|
||||
for (k, v) in rows {
|
||||
col_fields = col_fields.push(
|
||||
col_fields = col_fields.push({
|
||||
let t = if k == "Password:" {
|
||||
"*".to_string().repeat(v.len())
|
||||
} else {
|
||||
v.clone()
|
||||
};
|
||||
Row::new()
|
||||
.push(Container::new(text(k).bold().small()).width(Length::Fill))
|
||||
.push(text(v.clone()).small())
|
||||
.push(text(t).small())
|
||||
.push(Space::with_width(10))
|
||||
.push(
|
||||
Button::new(icon::clipboard_icon())
|
||||
.style(theme::Button::TransparentBorder)
|
||||
.on_press(SettingsEditMessage::Clipboard(v.to_string())),
|
||||
)
|
||||
.align_items(Alignment::Center),
|
||||
);
|
||||
.align_items(Alignment::Center)
|
||||
});
|
||||
}
|
||||
|
||||
card::simple(Container::new(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user