]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+plugin-pages/plugin-pages.component.ts
Fix ngx loading bar deprecation
[github/Chocobozzz/PeerTube.git] / client / src / app / +plugin-pages / plugin-pages.component.ts
index 5f294ee13cfc3c7f25e7bfc502feccd41cb112bb..973e4d021104bad1d7bb3c8649359a33f62cdf51 100644 (file)
@@ -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)