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

NEW Tabs now store the active tab in redux state #669

Conversation

raissanorth
Copy link
Contributor

@raissanorth raissanorth commented Oct 3, 2018

Dependant on framework PR: silverstripe/silverstripe-framework#8440

This PR changes the Tabs component to store the active tab in redux-form state. This allows components outside of the FormBuilder context to update the active tab with the redux-form action creators.

Additionally we've added an extension point to FormBuilderLoader that will call a provided callback after the redux form is initialised. We've used this to set the initial tab as it's only known to the client-side.

Related issue: silverstripe/silverstripe-elemental#325

Copy link
Contributor

@robbieaverill robbieaverill left a comment

Choose a reason for hiding this comment

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

LGTM!

@raissanorth raissanorth force-pushed the pulls/1/change-active-tab-via-redux-form branch from 46c9c28 to 3769a48 Compare October 3, 2018 20:17
@raissanorth raissanorth force-pushed the pulls/1/change-active-tab-via-redux-form branch from 3769a48 to 0be4a9a Compare October 9, 2018 03:09
@robbieaverill robbieaverill merged commit 02ac78f into silverstripe:1 Oct 9, 2018
@robbieaverill robbieaverill deleted the pulls/1/change-active-tab-via-redux-form branch October 9, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants