prettify popup for session keys rotation

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-02-17 15:35:39 +03:00
parent 9d346172b6
commit 6e7104f229
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 11 additions and 6 deletions

View File

@ -2,7 +2,7 @@
name = "ghost-eye" name = "ghost-eye"
authors = ["str3tch <stretch@ghostchain.io>"] authors = ["str3tch <stretch@ghostchain.io>"]
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost" description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost"
version = "0.3.33" version = "0.3.34"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View File

@ -70,10 +70,10 @@ impl RotatePopup {
(gran_key, babe_key, audi_key, slow_key) (gran_key, babe_key, audi_key, slow_key)
} else { } else {
( (
String::from("not prepared"), String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
String::from("not prepared"), String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
String::from("not prepared"), String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
String::from("not prepared"), String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
) )
} }
} }
@ -94,6 +94,11 @@ impl Component for RotatePopup {
Ok(()) Ok(())
} }
fn register_action_handler(&mut self, tx: UnboundedSender<Action>) -> Result<()> {
self.action_tx = Some(tx);
Ok(())
}
fn register_config_handler(&mut self, config: Config) -> Result<()> { fn register_config_handler(&mut self, config: Config) -> Result<()> {
if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) {
self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_normal_style(style.get("normal_style").copied());
@ -150,7 +155,7 @@ impl Component for RotatePopup {
]), ]),
], ],
[ [
Constraint::Min(4), Constraint::Length(4),
Constraint::Min(0), Constraint::Min(0),
], ],
) )