From 0ea9f463a9dc642ec44af4887b97e9dd63b323ef Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 22 Apr 2021 11:18:13 +0200 Subject: Add action:admin-plugin-settings.init client hook --- shared/models/plugins/client-hook.model.ts | 4 ++++ shared/models/plugins/plugin-client-scope.type.ts | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins') diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts index f8ca32771..620651051 100644 --- a/shared/models/plugins/client-hook.model.ts +++ b/shared/models/plugins/client-hook.model.ts @@ -85,6 +85,10 @@ export const clientActionHookObject = { // Fired when the registration page is being initialized 'action:signup.register.init': true, + // PeerTube >= 3.2 + // Fired when the admin plugin settings page is being initialized + 'action:admin-plugin-settings.init': true, + // Fired when the video upload page is being initalized 'action:video-upload.init': true, // Fired when the video import by URL page is being initalized diff --git a/shared/models/plugins/plugin-client-scope.type.ts b/shared/models/plugins/plugin-client-scope.type.ts index e188ce100..8cc234ff2 100644 --- a/shared/models/plugins/plugin-client-scope.type.ts +++ b/shared/models/plugins/plugin-client-scope.type.ts @@ -1 +1,9 @@ -export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | 'embed' | 'video-edit' +export type PluginClientScope = + 'common' | + 'video-watch' | + 'search' | + 'signup' | + 'login' | + 'embed' | + 'video-edit' | + 'admin-plugin' -- cgit v1.2.3