Skip to content
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

Allow the Invitations table to show invitations for all shops #331

Conversation

loan-laux
Copy link
Contributor

Signed-off-by: Loan Laux [email protected]

Impact: minor
Type: feature

Issue

I need to re-use the Invitations table in a custom plugin and show pending admin invitations for all shops at the same time. The Invitations table currently doesn't allow that.

Solution

Make Invitations take the shopId as a prop and allow for a null shop name value in the table.

Breaking changes

The Invitations table component now requires a shopId prop to show invitations for a given shop. If no shopId is provided, the table will show invitations for all shops combined.

Testing

  1. Use Invitations with a shopId, confirm that invitations are shown for this specific shop.
  2. Use Invitations without a shopId, confirm that invitations are shown for all combined shops.

@rosshadden rosshadden merged commit ebd9300 into reactioncommerce:trunk Oct 9, 2020
@mikemurray mikemurray mentioned this pull request Dec 4, 2020
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.

2 participants