openmct icon indicating copy to clipboard operation
openmct copied to clipboard

A way to exclude default plugins?

Open jvigliotta opened this issue 1 year ago • 1 comments

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.

jvigliotta avatar May 13 '24 19:05 jvigliotta

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. Image

Image

When a checkmark is removed from a plugin checkbox, the plugin will no longer appear in the Create menu.

Image

Image

When a plugin is in-use, the associated checkbox in the "Select Plugin" modal will be disabled.

Image

Image

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.

ghost avatar Feb 02 '25 02:02 ghost