X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bplugin-pages%2Fplugin-pages.component.ts;h=973e4d021104bad1d7bb3c8649359a33f62cdf51;hb=9744bb2ae8284c4589b66055c1d99997abf18748;hp=5f294ee13cfc3c7f25e7bfc502feccd41cb112bb;hpb=fa66c9a601d69f6d57c956a3513e8bbed7ee9616;p=github%2FChocobozzz%2FPeerTube.git 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 { } ngAfterViewInit () { + this.pluginService.ensurePluginsAreLoaded('common') + .then(() => this.loadRoute()) + } + + private loadRoute () { const path = '/' + this.route.snapshot.url.map(u => u.path).join('/') const registered = this.pluginService.getRegisteredClientRoute(path)