Possibility for plugins to update settings options value #6327
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
We've a plugin setting that populates its options based on a REST API response:
Therefore we need to be able to update the available options. When calling
registerSettings
multiple times it will create a new setting for each call, instead we would like to just update the options.Describe the solution you would like
Some way of updating the options. Possible solutions:
a) When calling
registerSetting
with a name that already exists, the new options will override the existing.b) Add
unregisterSetting
where you pass the setting name as argument.c) Add
deleteSetting
tosettingsManager
API.The text was updated successfully, but these errors were encountered: