Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@machikoyasuda
Copy link
Contributor

@machikoyasuda machikoyasuda commented Jul 31, 2019

Resolves #5388
Impact: minor
Type: feature

Issue

In the new Bulk Product/Tag action flow, it's required that the Action dropdown menu be available to click - even if products are not selected.

Solution

This PR changes the renderToolbar() method to 1) always show the dropdown, but 2) disable the action options if there are no products selected.

Screen Shot 2019-07-30 at 11 13 51 PM

Breaking changes

None

Testing

  1. http://localhost:3000/operator/products
  2. Select 0 products and click the dropdown. Options should be disabled.
  3. Select several products and click the dropdown. Try archiving, make-hidden-ing some things. Make sure the count is correct.

… are selected. disable actions if products are not selected

Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
@machikoyasuda machikoyasuda force-pushed the feat-5388-action-dropdown branch from 7161848 to 8a10b32 Compare July 31, 2019 06:09
Machiko Yasuda added 2 commits July 30, 2019 23:12
Signed-off-by: Machiko Yasuda <[email protected]>
Signed-off-by: Machiko Yasuda <[email protected]>
@machikoyasuda machikoyasuda force-pushed the feat-5388-action-dropdown branch from 8a10b32 to d64c42a Compare July 31, 2019 06:13
@machikoyasuda
Copy link
Contributor Author

This React props error shows up in the console, but this error also already appears in develop branch - so I do not think it was introduced in this branch.

Screen Shot 2019-07-30 at 11 16 25 PM

Copy link
Contributor

@cshepherd cshepherd left a comment

Choose a reason for hiding this comment

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

LGTM, also confirmed console warning isn't your fault

@machikoyasuda machikoyasuda merged commit 6f07dfb into develop Jul 31, 2019
@machikoyasuda machikoyasuda deleted the feat-5388-action-dropdown branch July 31, 2019 16:33
@kieckhafer kieckhafer mentioned this pull request Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants