Verified Commit a7370e53 authored by Chocobozzz's avatar Chocobozzz
Browse files

Introduce my-library plugin scope

parent f0a71a78
......@@ -159,9 +159,9 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy {
this.hooks.wrapObsFun(
this.videoPlaylistService.getPlaylistVideos.bind(this.videoPlaylistService),
{ videoPlaylistId: this.videoPlaylistId, componentPagination: this.pagination },
'common',
'filter:api.my-library.video-playlist-elements.get.params',
'filter:api.my-library.video-playlist-elements.get.result'
'my-library',
'filter:api.my-library.video-playlist-elements.list.params',
'filter:api.my-library.video-playlist-elements.list.result'
)
.subscribe(({ total, data }) => {
this.playlistElements = this.playlistElements.concat(data)
......
......@@ -67,7 +67,8 @@ class PluginsManager {
signup: new ReplaySubject<boolean>(1),
login: new ReplaySubject<boolean>(1),
'video-edit': new ReplaySubject<boolean>(1),
embed: new ReplaySubject<boolean>(1)
embed: new ReplaySubject<boolean>(1),
'my-library': new ReplaySubject<boolean>(1)
}
private readonly peertubeHelpersFactory: PeertubeHelpersFactory
......
......@@ -52,8 +52,8 @@ export const clientFilterHookObject = {
'filter:api.signup.registration.create.params': true,
// Filter params/result of the function that fetch video playlist elements of the my-library page
'filter:api.my-library.video-playlist-elements.get.params': true,
'filter:api.my-library.video-playlist-elements.get.result': true,
'filter:api.my-library.video-playlist-elements.list.params': true,
'filter:api.my-library.video-playlist-elements.list.result': true,
// Filter the options to create our player
'filter:internal.video-watch.player.build-options.params': true,
......
......@@ -6,4 +6,5 @@ export type PluginClientScope =
'login' |
'embed' |
'video-edit' |
'admin-plugin'
'admin-plugin' |
'my-library'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment