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 hiding of search bar when none of searchable columns are used on index page #892

Merged
merged 1 commit into from
Apr 27, 2018
Merged

Fix hiding of search bar when none of searchable columns are used on index page #892

merged 1 commit into from
Apr 27, 2018

Conversation

pustomytnyk
Copy link
Contributor

Untie search from representation of collection

@@ -134,7 +134,7 @@ def translate_with_resource(key)

def show_search_bar?
dashboard.attribute_types_for(
dashboard.collection_attributes
dashboard.all_attributes

Choose a reason for hiding this comment

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

Put a comma after the last parameter of a multiline method call.

@nickcharlton
Copy link
Member

Would you be able to add some tests to this?

@pustomytnyk
Copy link
Contributor Author

@nickcharlton maybe after #843. It waits 20 days already.

@pustomytnyk
Copy link
Contributor Author

@nickcharlton updated.

* Also unties search scope from representation of collection
@nickcharlton
Copy link
Member

It'd been a little while on this, so I took your branch and rebased. I'll merge it in now, thanks!

@nickcharlton nickcharlton merged commit f94c260 into thoughtbot:master Apr 27, 2018
@c4lliope c4lliope added the views-and-styles how administrate looks and is interacted with label May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
views-and-styles how administrate looks and is interacted with
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants