Widget Importer: Extra "import" button visible when there's nothing to import #47982
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Type] Bug
An existing feature does not function as intended
Description
When there's nothing to import and you add a new template part, an extra "import" option appears that is always in a disabled state.
I also noticed the import option is under "Advanced" rather than at a top line level. This feels a bit hidden and I'm not sure why/where that decision was made but wanted to note!
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
When there's nothing to import:
https://user-images.githubusercontent.com/26996883/218203172-e6332fe2-458d-41cc-95ef-4e299a274b0a.mov
When there's something to import:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: