-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
Back Office Product List - Hide search field and filters when there are no products in list #12957
Comments
hii @sigmundpetersen |
Sure, thanks @saunmanoj888 👍 |
hii @sigmundpetersen I have started working on above issue. I have one small query. If we want to achieve above I was thinking of below solution When user visits product page for the first time, no product is present, search_term is empty, cateogory_id is also nil, we will hide the search and filters section When products are present, user searches for some product which is not available, search_term is present, cateogory might be selected, the condition that i can use in
please let me know your thought on above |
Let's hear from our @openfoodfoundation/core-devs , @RachL , @filipefurtad0 :) |
Thanks, @saunmanoj888 for bringing this case.
I think it would be fine. Thanks. |
When a new person signs up and goes to the admin for the first time, they likely won't have any product.
We want them to really focus on creating new ones or importing them. at the moment in the list we still show the section with search and filters, which is not relevant to people. Let's hide it when there are no products.
The text was updated successfully, but these errors were encountered: