diff options
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) |