move feedback msg check to operations

This commit is contained in:
Robin Olsen
2026-02-18 22:23:08 +01:00
parent d3c5ead54e
commit a2212c0bad

View File

@@ -297,6 +297,13 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
if cmd != nil {
return m, cmd
}
case ValidationFeedbackMsg:
m.currentFeedback = msg.Feedback
if msg.Feedback.Success {
m.showComplete = true
return m, tea.Quit
}
return m, m.listenForValidation()
case tea.WindowSizeMsg:
m.width = msg.Width