Skip to content
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

A way to exclude default plugins? #7725

Open
jvigliotta opened this issue May 13, 2024 · 1 comment · May be fixed by #7998
Open

A way to exclude default plugins? #7725

jvigliotta opened this issue May 13, 2024 · 1 comment · May be fixed by #7998

Comments

@jvigliotta
Copy link
Contributor

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.

@johnriedel
Copy link
Contributor

johnriedel commented Feb 2, 2025

Feature implemented. Details below.

Associated PR: #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants