diff options
Diffstat (limited to 'shared/models/plugins')
-rw-r--r-- | shared/models/plugins/client/client-hook.model.ts | 17 | ||||
-rw-r--r-- | shared/models/plugins/client/plugin-element-placeholder.type.ts | 5 |
2 files changed, 21 insertions, 1 deletions
diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts index dda03124d..e6313b60e 100644 --- a/shared/models/plugins/client/client-hook.model.ts +++ b/shared/models/plugins/client/client-hook.model.ts | |||
@@ -72,6 +72,21 @@ export const clientFilterHookObject = { | |||
72 | 'filter:login.instance-about-plugin-panels.create.result': true, | 72 | 'filter:login.instance-about-plugin-panels.create.result': true, |
73 | 'filter:signup.instance-about-plugin-panels.create.result': true, | 73 | 'filter:signup.instance-about-plugin-panels.create.result': true, |
74 | 74 | ||
75 | 'filter:share.video-embed-code.build.params': true, | ||
76 | 'filter:share.video-embed-code.build.result': true, | ||
77 | 'filter:share.video-playlist-embed-code.build.params': true, | ||
78 | 'filter:share.video-playlist-embed-code.build.result': true, | ||
79 | |||
80 | 'filter:share.video-embed-url.build.params': true, | ||
81 | 'filter:share.video-embed-url.build.result': true, | ||
82 | 'filter:share.video-playlist-embed-url.build.params': true, | ||
83 | 'filter:share.video-playlist-embed-url.build.result': true, | ||
84 | |||
85 | 'filter:share.video-url.build.params': true, | ||
86 | 'filter:share.video-url.build.result': true, | ||
87 | 'filter:share.video-playlist-url.build.params': true, | ||
88 | 'filter:share.video-playlist-url.build.result': true, | ||
89 | |||
75 | // Filter videojs options built for PeerTube player | 90 | // Filter videojs options built for PeerTube player |
76 | 'filter:internal.player.videojs.options.result': true | 91 | 'filter:internal.player.videojs.options.result': true |
77 | } | 92 | } |
@@ -146,6 +161,8 @@ export const clientActionHookObject = { | |||
146 | 161 | ||
147 | // Fired when the modal to download a video/caption is shown | 162 | // Fired when the modal to download a video/caption is shown |
148 | 'action:modal.video-download.shown': true, | 163 | 'action:modal.video-download.shown': true, |
164 | // Fired when the modal to share a video/playlist is shown | ||
165 | 'action:modal.share.shown': true, | ||
149 | 166 | ||
150 | // ####### Embed hooks ####### | 167 | // ####### Embed hooks ####### |
151 | // /!\ In embed scope, peertube helpers are not available | 168 | // /!\ In embed scope, peertube helpers are not available |
diff --git a/shared/models/plugins/client/plugin-element-placeholder.type.ts b/shared/models/plugins/client/plugin-element-placeholder.type.ts index 129099c62..7b8a2605b 100644 --- a/shared/models/plugins/client/plugin-element-placeholder.type.ts +++ b/shared/models/plugins/client/plugin-element-placeholder.type.ts | |||
@@ -1 +1,4 @@ | |||
1 | export type PluginElementPlaceholder = 'player-next' | 1 | export type PluginElementPlaceholder = |
2 | 'player-next' | | ||
3 | 'share-modal-playlist-settings' | | ||
4 | 'share-modal-video-settings' | ||