From 6e7104f229c668c9afeeee0a79862e0788b8ac0f Mon Sep 17 00:00:00 2001
From: Uncle Stretch <uncle.stretch@ghostchain.io>
Date: Mon, 17 Feb 2025 15:35:39 +0300
Subject: [PATCH] prettify popup for session keys rotation

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
---
 Cargo.toml                               |  2 +-
 src/components/validator/rotate_popup.rs | 15 ++++++++++-----
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index a944603..d9c5cd8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
 name = "ghost-eye"
 authors = ["str3tch <stretch@ghostchain.io>"]
 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"
 
 [dependencies]
diff --git a/src/components/validator/rotate_popup.rs b/src/components/validator/rotate_popup.rs
index 78908df..8ada4f0 100644
--- a/src/components/validator/rotate_popup.rs
+++ b/src/components/validator/rotate_popup.rs
@@ -70,10 +70,10 @@ impl RotatePopup {
             (gran_key, babe_key, audi_key, slow_key)
         } else {
             (
-                String::from("not prepared"),
-                String::from("not prepared"),
-                String::from("not prepared"),
-                String::from("not prepared"),
+                String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
+                String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
+                String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
+                String::from("0x0000000000000000000000000000000000000000000000000000000000000000"),
             )
         }
     }
@@ -94,6 +94,11 @@ impl Component for RotatePopup {
         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<()> {
         if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) {
             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),
                 ],
             )