mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-12 17:02:56 +03:00
Ensure plugins are loaded for client route
This commit is contained in:
parent
9e2789aa4b
commit
9d9a37330c
@ -17,6 +17,11 @@ export class PluginPagesComponent implements AfterViewInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit () {
|
ngAfterViewInit () {
|
||||||
|
this.pluginService.ensurePluginsAreLoaded('common')
|
||||||
|
.then(() => this.loadRoute())
|
||||||
|
}
|
||||||
|
|
||||||
|
private loadRoute () {
|
||||||
const path = '/' + this.route.snapshot.url.map(u => u.path).join('/')
|
const path = '/' + this.route.snapshot.url.map(u => u.path).join('/')
|
||||||
|
|
||||||
const registered = this.pluginService.getRegisteredClientRoute(path)
|
const registered = this.pluginService.getRegisteredClientRoute(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user