aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r--client/src/root-helpers/plugins-manager.ts11
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
39type PeertubeHelpersFactory = (pluginInfo: PluginInfo) => RegisterClientHelpers 39type PeertubeHelpersFactory = (pluginInfo: PluginInfo) => RegisterClientHelpers
40type OnFormFields = (options: RegisterClientFormFieldOptions, videoFormOptions: RegisterClientVideoFieldOptions) => void 40
41type OnFormFields = (
42 pluginInfo: PluginInfo,
43 options: RegisterClientFormFieldOptions,
44 videoFormOptions: RegisterClientVideoFieldOptions
45) => void
46
41type OnSettingsScripts = (pluginInfo: PluginInfo, options: RegisterClientSettingsScriptOptions) => void 47type OnSettingsScripts = (pluginInfo: PluginInfo, options: RegisterClientSettingsScriptOptions) => void
48
42type OnClientRoute = (options: RegisterClientRouteOptions) => void 49type OnClientRoute = (options: RegisterClientRouteOptions) => void
43 50
44const logger = debug('peertube:plugins') 51const 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) => {