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

user session #3

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
11 changes: 11 additions & 0 deletions src/containers/gui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ class GUI extends React.Component {
this.props.onProjectError(error);
});
}
handleShowExtension(isFromButtonClick = false) {
if(isFromButtonClick) {
this.props.showExtension();
}
else if(this.props.projectId === '0' && !this.props.modalChooseExtensionAlreadyBeenOpened) {
aquino-luane marked this conversation as resolved.
Show resolved Hide resolved
this.props.setModalExtensionVisibility(true);
this.props.showExtension();
}
}
render () {
if (this.props.isError) {
throw new Error(
Expand Down Expand Up @@ -202,6 +211,8 @@ const mapDispatchToProps = dispatch => ({
onRequestCloseTelemetryModal: () => dispatch(closeTelemetryModal()),
onSetSession: (token) => dispatch(setSession(token)),
onProjectError: error => dispatch(projectError(error)),
showExtension: () => dispatch(openExtensionLibrary()),
setModalExtensionVisibility: (isOpened) => dispatch(setModalExtension(isOpened)),
});

const ConnectedGUI = injectIntl(connect(
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.