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

Fix tab selection in sidebar navigation #2918

Conversation

bitberry-dev
Copy link

Hi guys!

I noticed that two tabs was selected in sidebar navigation menu on taxon edit page (admin/taxonomy/:taxonomy_id/taxons/:id/edit)
2018-10-14 15 39 58
I think only 'Taxonomies' tab should be selected

I added few tests and fixed it.

visit spree.edit_admin_taxonomy_path(taxonomy)
only_one_selected_tab_inside?('[data-hook=admin_product_sub_tabs]', 'Taxonomies', spree.admin_taxonomies_path)
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/TrailingWhitespace: Trailing whitespace detected.

@@ -40,4 +40,41 @@

expect(page).to have_current_path %r{/admin/taxonomies/\d+/taxons/\d+/edit}
end


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/EmptyLines: Extra blank line detected.

@bitberry-dev bitberry-dev force-pushed the bugfix/backend_fix_tab_selection_in_sidebar_navigation branch from ab6c2a6 to dd447b2 Compare October 14, 2018 14:40
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor

@ericsaupe ericsaupe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kennyadsl kennyadsl merged commit 622aa25 into solidusio:master Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants