diff --git a/node-launchpad/src/components/beta_programme.rs b/node-launchpad/src/components/beta_programme.rs index bed5a8205e..5030932fc8 100644 --- a/node-launchpad/src/components/beta_programme.rs +++ b/node-launchpad/src/components/beta_programme.rs @@ -231,7 +231,7 @@ impl Component for BetaProgramme { ); f.render_widget(input, layer_two[1]); - let text = Paragraph::new(" Changing the username will lead to loss of earned.\n rewards. The nodes will be restarted to reflect\n the change."); + let text = Paragraph::new(" Changing your Username will reset all nodes,\n and any Nanos left on this device will be\n lost."); f.render_widget(text.fg(GHOST_WHITE), layer_two[2]); let dash = Block::new() @@ -240,8 +240,8 @@ impl Component for BetaProgramme { f.render_widget(dash, layer_two[3]); let buttons_layer = Layout::horizontal(vec![ - Constraint::Percentage(50), - Constraint::Percentage(50), + Constraint::Percentage(55), + Constraint::Percentage(45), ]) .split(layer_two[4]); @@ -257,7 +257,7 @@ impl Component for BetaProgramme { Style::default().fg(EUCALYPTUS) }; let button_yes = Line::from(vec![Span::styled( - "Modify Username [Enter]", + "Save Username [Enter]", button_yes_style, )]); f.render_widget(button_yes, buttons_layer[1]); diff --git a/node-launchpad/src/components/home.rs b/node-launchpad/src/components/home.rs index a857a8993e..3f8b4be8ae 100644 --- a/node-launchpad/src/components/home.rs +++ b/node-launchpad/src/components/home.rs @@ -235,14 +235,12 @@ impl Component for Home { } } Action::StoreDiscordUserName(username) => { - let reset_safenode_services = (self.discord_username != username) - && !self.discord_username.is_empty() - && !self.node_services.is_empty(); + let has_changed = self.discord_username != username; + let we_have_nodes = !self.node_services.is_empty(); + self.discord_username = username; - // todo: The discord_username popup should warn people that if nodes are running, they will be reset. - // And the earnings will be lost. - if reset_safenode_services { + if we_have_nodes && has_changed { self.lock_registry = Some(LockRegistryState::ResettingNodes); info!("Resetting safenode services because the discord username was reset."); let action_sender = self.get_actions_sender()?;