Ensure plugins are loaded for client route

This commit is contained in:
Chocobozzz 2021-12-17 14:48:38 +01:00
parent 9e2789aa4b
commit 9d9a37330c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View 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)