Skip to content

Commit

Permalink
gui(settings): make auth fields selectable for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
pythcoiner committed Nov 5, 2024
1 parent 14f2a31 commit 8f50887
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions gui/src/app/state/settings/bitcoind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ impl BitcoindSettings {
});
}
}
view::SettingsEditMessage::None(_) => {}
};
Command::none()
}
Expand Down
2 changes: 2 additions & 0 deletions gui/src/app/view/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ pub enum SettingsEditMessage {
BitcoindRpcAuthTypeSelected(RpcAuthType),
Cancel,
Confirm,
// dummy message
None(String),
}

#[derive(Debug, Clone)]
Expand Down
12 changes: 7 additions & 5 deletions gui/src/app/view/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,13 @@ pub fn bitcoind<'a>(

let mut col_fields = Column::new();
for (k, v) in rows {
col_fields = col_fields.push(
Row::new()
.push(Container::new(text(k).bold().small()).width(Length::Fill))
.push(text(v).small()),
);
col_fields = col_fields
.push(
Row::new()
.push(Container::new(text(k).bold().small()).width(Length::Fill))
.push(TextInput::new("", &v).on_input(SettingsEditMessage::None)),
)
.push(Space::with_height(3));
}

card::simple(Container::new(
Expand Down

0 comments on commit 8f50887

Please sign in to comment.