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

Me: Select correct nav when password updated #1287

Merged
merged 2 commits into from
Dec 5, 2015

Conversation

jeremeylduvall
Copy link
Contributor

This is a potential fix for #399. When the password is updated, match this.props.path to 'me/security' so the Password menu item is highlighted.

Here's a snapshot of this in action:

initial

After updating:

updated

Confirmed this doesn't interfere with clicking on any other elements after updating a password. Other nav items work as expected.

- Fix for #399. When the password is updated, match this.props.path to 'me/security' so the Password menu item is highlighted.
@jeremeylduvall jeremeylduvall added [Type] Bug [Status] In Progress [Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account. Security labels Dec 4, 2015
@jeremeylduvall jeremeylduvall self-assigned this Dec 4, 2015
@ebinnion
Copy link
Contributor

ebinnion commented Dec 4, 2015

@jeremeylduvall - I believe the line that should've actually been updated is selected={ tab.path === this.props.path }. The original commit did work, but I believe it was only because it incorrectly mutated this.props.path.

The second commit adds a new method called getFilteredPath() that returns a string without the ?....

@jeremeylduvall
Copy link
Contributor Author

👍 Works for me. Thanks @ebinnion!

ebinnion added a commit that referenced this pull request Dec 5, 2015
Me: Select correct nav when password updated
@ebinnion ebinnion merged commit 627e734 into master Dec 5, 2015
@ebinnion ebinnion deleted the fix/399-password-navigation branch December 5, 2015 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account. Security [Type] Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants