aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-24 11:34:31 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:41 +0100
commitfaeec106efec3353ba2db8a3df597d85023d4711 (patch)
tree2cc5984d74ca7e394c2e89be701c9c1a41a3169d /shared/models
parent2e257e36b78b6f6b842f5ed8b4c79514e6e3a208 (diff)
downloadPeerTube-faeec106efec3353ba2db8a3df597d85023d4711.tar.gz
PeerTube-faeec106efec3353ba2db8a3df597d85023d4711.tar.zst
PeerTube-faeec106efec3353ba2db8a3df597d85023d4711.zip
Add auth user client hook actions
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/plugins/client-hook.model.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/plugins/client-hook.model.ts b/shared/models/plugins/client-hook.model.ts
index 6c92ef3c6..f8ca32771 100644
--- a/shared/models/plugins/client-hook.model.ts
+++ b/shared/models/plugins/client-hook.model.ts
@@ -94,6 +94,12 @@ export const clientActionHookObject = {
94 // Fired when the "Go Live" page is being initalized 94 // Fired when the "Go Live" page is being initalized
95 'action:go-live.init': true, 95 'action:go-live.init': true,
96 96
97 // Fired when the user explicitely logged in/logged out
98 'action:auth-user.logged-in': true,
99 'action:auth-user.logged-out': true,
100 // Fired when the application loaded user information (using tokens from the local storage or after a successful login)
101 'action:auth-user.information-loaded': true,
102
97 // Fired when the modal to download a video/caption is shown 103 // Fired when the modal to download a video/caption is shown
98 'action:modal.video-download.shown': true, 104 'action:modal.video-download.shown': true,
99 105