openmct
openmct copied to clipboard
A way to exclude default plugins?
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] As the title says, a way to exclude default plugins. People may not want or need all of the plugins that are included by default in Open MCT.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Could be another plugin? Possibly one that you can pass in default plugin names to exclude from the create menu. Or, possibly an option to pass plugin names to openmct.start() that would not install the plugins at all if they're included, this would be a more thorough method than the first.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Just dealing with having all the default plugins.
Feature implemented. Details below.
Associated PR: https://github.com/nasa/openmct/pull/7998
This feature adds the ability to control which plugins appear in the Create menu via a "Plugin Selector" dialog.
When a checkmark is removed from a plugin checkbox, the plugin will no longer appear in the Create menu.
When a plugin is in-use, the associated checkbox in the "Select Plugin" modal will be disabled.
When creating a plugin, nothing has changed:
openmct.types.addType(typeKey, typeDef);
To create a plugin that's deactivated by default, simply make the following change:
openmct.types.addType(typeKey, typeDef, true);
Additional enhancements:
- Clicking the Create menu button when the create menu is open/visible will close/hide the create menu.