Skip to content

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

move creation of angular boostrap __ng2-bootstrap-has-run mark, so it is set after turbo:load too

Ivan Kuchinf395be2d3551
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
index a35c22a3565..51d14017301 100644
--- a/frontend/src/app/app.module.ts
+++ b/frontend/src/app/app.module.ts
@@ -414,6 +414,8 @@ export class OpenProjectModule implements DoBootstrap {
if (root) {
appRef.bootstrap(ApplicationBaseComponent, root);
}
+
+ document.body.classList.add('__ng2-bootstrap-has-run');
}
private registerCustomElements(injector:Injector) {
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index 51373fe7cca..82f7151eae7 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -44,10 +44,6 @@ void initializeLocale()
initializeGlobalListeners();
// Due to the behaviour of the Edge browser we need to wait for 'DOM ready'
- void platformBrowserDynamic()
- .bootstrapModule(OpenProjectModule)
- .then(() => {
- jQuery('body').addClass('__ng2-bootstrap-has-run');
- });
+ void platformBrowserDynamic().bootstrapModule(OpenProjectModule);
});
});