diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-17 14:48:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-17 14:48:38 +0100 |
commit | 9d9a37330ce23642460d911f2932b8b70c80d6a0 (patch) | |
tree | b59824cc356f18df0653f3ebf3fd8b849dff98a6 /client/src/app/+plugin-pages | |
parent | 9e2789aa4bcd582d6e7746e2f6ece0fd25a3240a (diff) | |
download | PeerTube-9d9a37330ce23642460d911f2932b8b70c80d6a0.tar.gz PeerTube-9d9a37330ce23642460d911f2932b8b70c80d6a0.tar.zst PeerTube-9d9a37330ce23642460d911f2932b8b70c80d6a0.zip |
Ensure plugins are loaded for client route
Diffstat (limited to 'client/src/app/+plugin-pages')
-rw-r--r-- | client/src/app/+plugin-pages/plugin-pages.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/+plugin-pages/plugin-pages.component.ts b/client/src/app/+plugin-pages/plugin-pages.component.ts index 5f294ee13..973e4d021 100644 --- a/client/src/app/+plugin-pages/plugin-pages.component.ts +++ b/client/src/app/+plugin-pages/plugin-pages.component.ts | |||
@@ -17,6 +17,11 @@ export class PluginPagesComponent implements AfterViewInit { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | ngAfterViewInit () { | 19 | ngAfterViewInit () { |
20 | this.pluginService.ensurePluginsAreLoaded('common') | ||
21 | .then(() => this.loadRoute()) | ||
22 | } | ||
23 | |||
24 | private loadRoute () { | ||
20 | const path = '/' + this.route.snapshot.url.map(u => u.path).join('/') | 25 | const path = '/' + this.route.snapshot.url.map(u => u.path).join('/') |
21 | 26 | ||
22 | const registered = this.pluginService.getRegisteredClientRoute(path) | 27 | const registered = this.pluginService.getRegisteredClientRoute(path) |