aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/plugins/plugin.service.ts
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 /client/src/app/core/plugins/plugin.service.ts
parent2e257e36b78b6f6b842f5ed8b4c79514e6e3a208 (diff)
downloadPeerTube-faeec106efec3353ba2db8a3df597d85023d4711.tar.gz
PeerTube-faeec106efec3353ba2db8a3df597d85023d4711.tar.zst
PeerTube-faeec106efec3353ba2db8a3df597d85023d4711.zip
Add auth user client hook actions
Diffstat (limited to 'client/src/app/core/plugins/plugin.service.ts')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index b755fda2c..54dba5e17 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -235,6 +235,12 @@ export class PluginService implements ClientHook {
235 .toPromise() 235 .toPromise()
236 }, 236 },
237 237
238 getServerConfig: () => {
239 return this.server.getConfig()
240 .pipe(catchError(res => this.restExtractor.handleError(res)))
241 .toPromise()
242 },
243
238 isLoggedIn: () => { 244 isLoggedIn: () => {
239 return this.authService.isLoggedIn() 245 return this.authService.isLoggedIn()
240 }, 246 },