diff options
Diffstat (limited to 'client/src/root-helpers/plugins-manager.ts')
-rw-r--r-- | client/src/root-helpers/plugins-manager.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/client/src/root-helpers/plugins-manager.ts b/client/src/root-helpers/plugins-manager.ts index 1157a274e..61731032a 100644 --- a/client/src/root-helpers/plugins-manager.ts +++ b/client/src/root-helpers/plugins-manager.ts | |||
@@ -37,8 +37,15 @@ type PluginInfo = { | |||
37 | } | 37 | } |
38 | 38 | ||
39 | type PeertubeHelpersFactory = (pluginInfo: PluginInfo) => RegisterClientHelpers | 39 | type PeertubeHelpersFactory = (pluginInfo: PluginInfo) => RegisterClientHelpers |
40 | type OnFormFields = (options: RegisterClientFormFieldOptions, videoFormOptions: RegisterClientVideoFieldOptions) => void | 40 | |
41 | type OnFormFields = ( | ||
42 | pluginInfo: PluginInfo, | ||
43 | options: RegisterClientFormFieldOptions, | ||
44 | videoFormOptions: RegisterClientVideoFieldOptions | ||
45 | ) => void | ||
46 | |||
41 | type OnSettingsScripts = (pluginInfo: PluginInfo, options: RegisterClientSettingsScriptOptions) => void | 47 | type OnSettingsScripts = (pluginInfo: PluginInfo, options: RegisterClientSettingsScriptOptions) => void |
48 | |||
42 | type OnClientRoute = (options: RegisterClientRouteOptions) => void | 49 | type OnClientRoute = (options: RegisterClientRouteOptions) => void |
43 | 50 | ||
44 | const logger = debug('peertube:plugins') | 51 | const logger = debug('peertube:plugins') |
@@ -223,7 +230,7 @@ class PluginsManager { | |||
223 | throw new Error('Video field registration is not supported') | 230 | throw new Error('Video field registration is not supported') |
224 | } | 231 | } |
225 | 232 | ||
226 | return this.onFormFields(commonOptions, videoFormOptions) | 233 | return this.onFormFields(pluginInfo, commonOptions, videoFormOptions) |
227 | } | 234 | } |
228 | 235 | ||
229 | const registerSettingsScript = (options: RegisterClientSettingsScriptOptions) => { | 236 | const registerSettingsScript = (options: RegisterClientSettingsScriptOptions) => { |