-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
@@ -48,6 +49,9 @@ export default React.createClass( { | |||
scary: true, | |||
onClick: ( event ) => { | |||
event.preventDefault(); | |||
if ( this.props.isMock ) { | |||
return; |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :)
ca97cf8
to
a05193d
Compare
…link Fix/1275 disable disconnect link
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:
After: