-
Notifications
You must be signed in to change notification settings - Fork 51
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(ia): tweak syndication plugin cards behavior #3707
Conversation
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.
Great changes and it's working well.
An issue I'm having on the epic branch and here, not introduced by these changes, is a weird inability to deactivate Apple News.
I followed the instructions to delete the plugin and install/activate via the card, but it is still unable to deactivate afterward.
apple-news-deactivate.mov
I'll investigate this further and we can tackle it in a separate PR.
I think I got it. It's this line:
I don't have the plugin configured ( This line needs to be You can test it by removing the Another weird UI glitch I just found is when I click to Configure for the first time it enters the loading state with the card toggled off before redirecting. |
@miguelpeixe it seems like updating that line fixes both issues you mentioned—does it for you? |
Yep |
All Submissions:
Changes proposed in this Pull Request:
Tweaks the
WizardsPluginCard
component slightly:reloadOnActivation
prop to be passed. If set tofalse
, the card will not trigger a page reload after installing or activating its plugin. Deactivating the plugin will still result in a page reload, to clear out dead WP admin menu links. Default:true
so that component instances not specifically touched by this PR are not affected.editLink
prop, will continue to show the "Configure" link to the plugin's settings page even after the plugin has been fully setup.Plugin_Manager::activate()
method instead of theinstall()
method, asactivate()
will automatically install the plugin first if not installed. This lets the user skip an extra click and REST API roundtrip to install then activate the plugin.Then, applies these changes to instances of the
WizardsPluginCard
component in the Syndication wizard page:reloadOnActivation: false
—these don't really require a refresh immediately upon activation as the "Configure" links that appear will work without a page reload.editLink
prop for the Distributor plugin which leads to the "External Connections" settings page.How to test the changes in this Pull Request:
Other information: