hotwax / inventory-count

HotWax Commerce Inventory Count
Apache License 2.0
16 stars 66 forks source link

Disable 'Add' Button When 'Accepted' or 'Rejected' Tab is Open #409

Open Adameddy26 opened 3 months ago

Adameddy26 commented 3 months ago

Description:

Currently, users can add product items while the 'Accepted' or 'Rejected' tabs are open, but these added products are only visible in the 'All' tab. This can lead to confusion, especially when there are no items in the 'Accepted' or 'Rejected' tabs. When a user adds an item while these tabs are open, an empty state is visible, and users have to switch to the 'All' tab to locate the newly added item.

Expected Enhancement:

The 'Add' button should be disabled when either the 'Accepted' or 'Rejected' tab is open. This will prevent users from adding items while viewing tabs where the items won't be immediately visible.