From 9d9a37330ce23642460d911f2932b8b70c80d6a0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Dec 2021 14:48:38 +0100 Subject: [PATCH] Ensure plugins are loaded for client route --- client/src/app/+plugin-pages/plugin-pages.component.ts | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.41.0