selectStoryByID sets the selected index to the story with the given ID.
(storyID string)
| 2190 | |
| 2191 | // selectStoryByID sets the selected index to the story with the given ID. |
| 2192 | func (a *App) selectStoryByID(storyID string) { |
| 2193 | for i, story := range a.prd.UserStories { |
| 2194 | if story.ID == storyID { |
| 2195 | a.selectedIndex = i |
| 2196 | a.adjustStoriesScroll() |
| 2197 | return |
| 2198 | } |
| 2199 | } |
| 2200 | } |
| 2201 | |
| 2202 | // selectInProgressStory sets the selected index to the first in-progress story. |
| 2203 | func (a *App) selectInProgressStory() { |
nothing calls this directly
no test coverage detected