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

Fix/1275 disable disconnect link #2678

Merged
merged 2 commits into from
Jan 26, 2016
Merged

Conversation

enejb
Copy link
Member

@enejb enejb commented Jan 21, 2016

Fixes #1275

Remove the ability to navigate to the disconnect link. Also remove the plugin info component if the plugin is display the mock version.
Prevents this from happening:
screen shot 2016-01-21 at 14 21 09
After:
screen shot 2016-01-21 at 14 21 22

@enejb enejb added [Type] Enhancement Jetpack Jetpack Plugins [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 21, 2016
@@ -48,6 +49,9 @@ export default React.createClass( {
scary: true,
onClick: ( event ) => {
event.preventDefault();
if ( this.props.isMock ) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we not render the DisconnectJetpackButton component at all if isMock?

Copy link
Contributor

Choose a reason for hiding this comment

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

Like you did for PluginInformation

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the idea is that we still want the toggles and the disconnect buttons visible. Since they show the possible actions when that would be available to the user.

Copy link
Contributor

Choose a reason for hiding this comment

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

yup, the idea is to show the users what they are missing :)

@lezama lezama added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 25, 2016
@enejb enejb added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Author Reply labels Jan 25, 2016
@johnHackworth
Copy link
Contributor

works great 👍

@johnHackworth johnHackworth added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 26, 2016
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.

4 participants