[BUG] - Both enabled and disabled buttons are shown irrespective of product status.
Author: saurabhshukla689Created Oct 6, 2024Updated Apr 5, 2026
Describe the bug In the admin app , in products grid page, when user tries to enable or disable an item, both enable and disable items are shown regardless of the state of the item( whether enabled or disabled).
To Reproduce Steps to reproduce the behavior:
- Go to 'Catalog-> Products'
- Click on the checbox corresponding to one of the items
- Both disable and enable buttons are shown
Expected behavior If the product is enabled , then only disabled option should be visible . If the product is disabled , then only enabled option should be visible. If more than one items are selected , both enable and disable items should be shown, and clicking either of them enables or disables all the products. Screenshots If applicable, add screenshots to help explain your problem.
Background (please complete the following information):
- NodeJS Version - v18.19.1
- Postgres Version - (PostgreSQL) 16.4
- EverShop Version - latest
- OS: Ubuntu
- Browser Chrome
Source: evershopcommerce/evershop