-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use tab to toggle, add final step #50
Conversation
This pull request has been linked to Shortcut Story #237281: show toggle flag in setup wizard. |
@@ -102,7 +103,12 @@ func (m WizardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { | |||
case flagToggleStep: | |||
updatedModel, _ := m.steps[flagToggleStep].Update(msg) | |||
m.steps[flagToggleStep] = updatedModel | |||
m.currStep += 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
increment here on enter so we can see the final text
default: | ||
return m, tea.Quit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're here that means we're done! will prevent out of index errors
Updates our flag toggle step to toggle on
tab
rather thanenter
. Also adds a final congratulatory screen and exits on completion.pr50.mov