diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-22 11:18:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-22 11:18:13 +0200 |
commit | 0ea9f463a9dc642ec44af4887b97e9dd63b323ef (patch) | |
tree | b3fe33ab598f8ac503f74a0603a78877144939c2 /shared | |
parent | 302eba0d898e38dca14739486441c27c0be6c62f (diff) | |
download | PeerTube-0ea9f463a9dc642ec44af4887b97e9dd63b323ef.tar.gz PeerTube-0ea9f463a9dc642ec44af4887b97e9dd63b323ef.tar.zst PeerTube-0ea9f463a9dc642ec44af4887b97e9dd63b323ef.zip |
Add action:admin-plugin-settings.init client hook
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/plugins/client-hook.model.ts | 4 | ||||
-rw-r--r-- | shared/models/plugins/plugin-client-scope.type.ts | 10 |
2 files changed, 13 insertions, 1 deletions
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 = { | |||
85 | // Fired when the registration page is being initialized | 85 | // Fired when the registration page is being initialized |
86 | 'action:signup.register.init': true, | 86 | 'action:signup.register.init': true, |
87 | 87 | ||
88 | // PeerTube >= 3.2 | ||
89 | // Fired when the admin plugin settings page is being initialized | ||
90 | 'action:admin-plugin-settings.init': true, | ||
91 | |||
88 | // Fired when the video upload page is being initalized | 92 | // Fired when the video upload page is being initalized |
89 | 'action:video-upload.init': true, | 93 | 'action:video-upload.init': true, |
90 | // Fired when the video import by URL page is being initalized | 94 | // 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 @@ | |||
1 | export type PluginClientScope = 'common' | 'video-watch' | 'search' | 'signup' | 'login' | 'embed' | 'video-edit' | 1 | export type PluginClientScope = |
2 | 'common' | | ||
3 | 'video-watch' | | ||
4 | 'search' | | ||
5 | 'signup' | | ||
6 | 'login' | | ||
7 | 'embed' | | ||
8 | 'video-edit' | | ||
9 | 'admin-plugin' | ||