From f8b4a71d428703811fa74dd811ef715c7d7afff6 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Fri, 8 Jul 2022 10:50:10 +0200 Subject: hooks filter:api.my-lib.playlist-elems.get.* (#5098) * hooks filter:api.my-lib.playlist-elems.get.* closes #4776 * Introduce my-library plugin scope Co-authored-by: Chocobozzz --- shared/models/plugins/client/client-hook.model.ts | 4 ++++ shared/models/plugins/client/plugin-client-scope.type.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins/client') diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts index 04d42d591..466be8946 100644 --- a/shared/models/plugins/client/client-hook.model.ts +++ b/shared/models/plugins/client/client-hook.model.ts @@ -51,6 +51,10 @@ export const clientFilterHookObject = { // Filter form '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.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, 'filter:internal.video-watch.player.build-options.result': true, diff --git a/shared/models/plugins/client/plugin-client-scope.type.ts b/shared/models/plugins/client/plugin-client-scope.type.ts index 8cc234ff2..92734533d 100644 --- a/shared/models/plugins/client/plugin-client-scope.type.ts +++ b/shared/models/plugins/client/plugin-client-scope.type.ts @@ -6,4 +6,5 @@ export type PluginClientScope = 'login' | 'embed' | 'video-edit' | - 'admin-plugin' + 'admin-plugin' | + 'my-library' -- cgit v1.2.3