@@ -961,7 +961,7 @@ func (m *SyncMethodSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
961
961
case NoSync :
962
962
m .state .weave .PushPreviousResponse (styles .RenderPreviousResponse (styles .ArrowSeparator , m .GetQuestion (), []string {"" }, string (* selected )))
963
963
// TODO: What if there's existing /data. Should we also prune it here?
964
- return NewTerminalState (m .state ), cmd
964
+ return NewTerminalState (m .state ), tea . Quit
965
965
case Snapshot , StateSync :
966
966
m .state .weave .PushPreviousResponse (styles .RenderPreviousResponse (styles .ArrowSeparator , m .GetQuestion (), []string {"" }, string (* selected )))
967
967
model := NewExistingDataChecker (m .state )
@@ -973,7 +973,6 @@ func (m *SyncMethodSelect) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
973
973
}
974
974
975
975
func (m * SyncMethodSelect ) View () string {
976
- // TODO: Render No Sync terminal state
977
976
return m .state .weave .Render () + styles .RenderPrompt (
978
977
m .GetQuestion (),
979
978
[]string {"" },
@@ -1407,10 +1406,10 @@ func (m *TerminalState) Init() tea.Cmd {
1407
1406
}
1408
1407
1409
1408
func (m * TerminalState ) Update (msg tea.Msg ) (tea.Model , tea.Cmd ) {
1410
- return m , tea . Quit
1409
+ return m , nil
1411
1410
}
1412
1411
1413
1412
func (m * TerminalState ) View () string {
1414
- // TODO: revisit congraturation text
1413
+ // TODO: revisit congratulations text
1415
1414
return m .state .weave .Render () + "🪢🪢🪢 " + styles .FadeText ("Success" ) + " 🪢🪢🪢\n "
1416
1415
}
0 commit comments