restructure app state, basic server connection using inputted user info and basic mainscreen

This commit is contained in:
2021-11-14 06:19:46 +02:00
parent 4bdb4a0fb3
commit 9337b9c462
9 changed files with 210 additions and 97 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func (s State) Update(msg tea.Msg) (State, tea.Cmd) {
// run the newClient cmd when pressing "enter" while focused on the connect button
if str == "enter" && s.FocusIndex == len(s.Inputs)+1 {
return s, tea.Quit // TODO: change this to create a newClient and connect using a tea.Cmd
return s, connect
}
// toggle tls state when pressing "enter" while focused on the checkbox