Skip to content
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

Only scrolls to a newly added Category after immediately adding it (in Settings) #564

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cinadia
Copy link
Contributor

@cinadia cinadia commented Jun 7, 2024

Description:
Resets lastViewedIndex to 0 if a new category was not just recently added. This means that the "Categories and Phrases" settings page only automatically scrolls to a newly added Category one time: after immediately adding the new Category. If a new Category was not just added, the "Categories and Phrases" settings page brings the user to the first page.

Also added ViewModel tests.

Resolves #532

  • Acceptance Criteria satisfied
  • Regression Testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

Adding a new category defaults Categories settings to last page
2 participants