fix: Empty states and miscellanous fixes

- Added Wishlist and Product Listing empty states
- Hide ‘Write Review’ button f user is not Customer
- Fixed grid view title (missing arg)
- Render empty state if no items form server side
- Removed unused function
- Guest user redirected to login on clicking Wishlist button
- Fixed ‘Notes’ field clearing issue
This commit is contained in:
marination
2021-05-19 21:17:47 +05:30
parent 681ada9aaf
commit 2bc68f3f28
9 changed files with 117 additions and 71 deletions

View File

@@ -17,8 +17,12 @@
</div>
</div>
{% else %}
<!-- TODO: Make empty state for wishlist -->
{% include "erpnext/www/all-products/not_found.html" %}
<div class="cart-empty frappe-card">
<div class="cart-empty-state">
<img src="/assets/erpnext/images/ui-states/cart-empty-state.png" alt="Empty Cart">
</div>
<div class="cart-empty-message mt-4">{{ _('Wishlist is empty!') }}</p>
</div>
{% endif %}
{% endblock %}