diff --git a/src/ui/activities/auth_activity/input.rs b/src/ui/activities/auth_activity/input.rs index 64d587c..b46f2fd 100644 --- a/src/ui/activities/auth_activity/input.rs +++ b/src/ui/activities/auth_activity/input.rs @@ -159,6 +159,10 @@ impl AuthActivity { // Show help self.input_mode = InputMode::Popup(PopupType::Help); } + 'C' | 'c' => { + // Show setup + self.setup = true; + } 'S' | 's' => { // Default choice option to no self.choice_opt = DialogYesNoOption::No; @@ -268,6 +272,10 @@ impl AuthActivity { self.selected_field = InputField::Password; } KeyCode::Char(ch) => match ch { + 'C' | 'c' => { + // Show setup + self.setup = true; + } 'E' | 'e' => { // Ask if user wants to delete bookmark; NOTE: same as self.input_mode = InputMode::Popup(PopupType::YesNo( @@ -348,6 +356,10 @@ impl AuthActivity { self.selected_field = InputField::Password; } KeyCode::Char(ch) => match ch { + 'C' | 'c' => { + // Show setup + self.setup = true; + } 'E' | 'e' => { // Ask if user wants to delete bookmark; NOTE: same as self.input_mode = InputMode::Popup(PopupType::YesNo( diff --git a/src/ui/activities/auth_activity/layout.rs b/src/ui/activities/auth_activity/layout.rs index 069b613..6e0c4b9 100644 --- a/src/ui/activities/auth_activity/layout.rs +++ b/src/ui/activities/auth_activity/layout.rs @@ -581,6 +581,16 @@ impl AuthActivity { Span::raw(" "), Span::raw("Delete selected bookmark"), ])), + ListItem::new(Spans::from(vec![ + Span::styled( + "", + Style::default() + .fg(Color::Cyan) + .add_modifier(Modifier::BOLD), + ), + Span::raw(" "), + Span::raw("Enter setup"), + ])), ListItem::new(Spans::from(vec![ Span::styled( "", diff --git a/src/ui/activities/auth_activity/mod.rs b/src/ui/activities/auth_activity/mod.rs index 7c148e5..8a4a458 100644 --- a/src/ui/activities/auth_activity/mod.rs +++ b/src/ui/activities/auth_activity/mod.rs @@ -109,6 +109,7 @@ pub struct AuthActivity { pub password: String, pub submit: bool, // becomes true after user has submitted fields pub quit: bool, // Becomes true if user has pressed esc + pub setup: bool, // Becomes true if user has requested setup context: Option, bookmarks_client: Option, selected_field: InputField, // Selected field in AuthCredentials Form @@ -141,6 +142,7 @@ impl AuthActivity { password: String::new(), submit: false, quit: false, + setup: false, context: None, bookmarks_client: None, selected_field: InputField::Address,