selectInProgressStory sets the selected index to the first in-progress story.
()
| 2201 | |
| 2202 | // selectInProgressStory sets the selected index to the first in-progress story. |
| 2203 | func (a *App) selectInProgressStory() { |
| 2204 | for i, story := range a.prd.UserStories { |
| 2205 | if story.InProgress { |
| 2206 | a.selectedIndex = i |
| 2207 | a.adjustStoriesScroll() |
| 2208 | return |
| 2209 | } |
| 2210 | } |
| 2211 | } |
| 2212 | |
| 2213 | // GetState returns the current app state. |
| 2214 | func (a *App) GetState() AppState { |
no test coverage detected