diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/plugins/client-hook.model.ts | 8 | ||||
-rw-r--r-- | shared/models/plugins/plugin-client-scope.type.ts | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts index b53b8de99..193a3f646 100644 --- a/shared/models/plugins/client-hook.model.ts +++ b/shared/models/plugins/client-hook.model.ts | |||
@@ -80,7 +80,13 @@ export const clientActionHookObject = { | |||
80 | 'action:router.navigation-end': true, | 80 | 'action:router.navigation-end': true, |
81 | 81 | ||
82 | // Fired when the registration page is being initialized | 82 | // Fired when the registration page is being initialized |
83 | 'action:signup.register.init': true | 83 | 'action:signup.register.init': true, |
84 | |||
85 | // ####### Embed hooks ####### | ||
86 | // In embed scope, peertube helpers are not available | ||
87 | |||
88 | // Fired when the embed loaded the player | ||
89 | 'action:embed.player.loaded': true | ||
84 | } | 90 | } |
85 | 91 | ||
86 | export type ClientActionHookName = keyof typeof clientActionHookObject | 92 | export type ClientActionHookName = keyof typeof clientActionHookObject |
diff --git a/shared/models/plugins/plugin-client-scope.type.ts b/shared/models/plugins/plugin-client-scope.type.ts index d112434e8..a3c669fe7 100644 --- a/shared/models/plugins/plugin-client-scope.type.ts +++ b/shared/models/plugins/plugin-client-scope.type.ts | |||
@@ -1 +1 @@ | |||
export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | 'embed' | ||