OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Bootstrap root component again on turbo load
Oliver Günther15de103c4262
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.tsindex f8d39a6f527..3b73e49dacf 100644--- a/frontend/src/app/app.module.ts+++ b/frontend/src/app/app.module.ts@@ -387,13 +387,24 @@ export function initializeServices(injector:Injector) {export class OpenProjectModule implements DoBootstrap {// noinspection JSUnusedGlobalSymbolsngDoBootstrap(appRef:ApplicationRef) {++ this.runBootstrap(appRef);++ // Connect ui router to turbo drive+ document.addEventListener('turbo:load', () => {+ this.runBootstrap(appRef);+ });++ this.registerCustomElements(appRef.injector);+ }++ private runBootstrap(appRef:ApplicationRef) {// Try to bootstrap a dynamic root elementconst root = document.querySelector(appBaseSelector);if (root) {appRef.bootstrap(ApplicationBaseComponent, root);}- this.registerCustomElements(appRef.injector);}private registerCustomElements(injector:Injector) {