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
Reload base app when turbo load happens
Oliver Günther85c99ffa88a8
diff --git a/frontend/src/app/core/routing/openproject.routes.ts b/frontend/src/app/core/routing/openproject.routes.tsindex 22185a5ed89..d1f3cf49cf0 100644--- a/frontend/src/app/core/routing/openproject.routes.ts+++ b/frontend/src/app/core/routing/openproject.routes.ts@@ -172,15 +172,17 @@ export function initializeUiRouterListeners(injector:Injector) {const backRoutingService:BackRoutingService = injector.get(BackRoutingService);const uiRouter = injector.get(UIRouter);+ // Check whether we are running within our complete app, or only within some other bootstrapped+ // component+ let openprojectBaseApp = document.querySelector(appBaseSelector);+// Connect ui router to turbo drivedocument.addEventListener('turbo:load', () => {+ // Re-find the current app-base+ openprojectBaseApp = document.querySelector(appBaseSelector);uiRouter.urlService.sync();});- // Check whether we are running within our complete app, or only within some other bootstrapped- // component- const wpBase = document.querySelector(appBaseSelector);-// Uncomment to trace route changes// uiRouter.trace.enable();@@ -273,7 +275,7 @@ export function initializeUiRouterListeners(injector:Injector) {// The FirstRoute service remembers the first angular route we went to// but for pages without any angular routes, this will stay empty.// So we also allow routes to happen after some delay- if (wpBase === null) {+ if (openprojectBaseApp === null) {// Get the current path and compareconst path = window.location.pathname;const pathWithSearch = path + window.location.search;diff --git a/modules/bim/spec/features/card_view/bulk_actions_spec.rb b/modules/bim/spec/features/card_view/bulk_actions_spec.rbindex 58b66be2ef3..2de36f7fc31 100644--- a/modules/bim/spec/features/card_view/bulk_actions_spec.rb+++ b/modules/bim/spec/features/card_view/bulk_actions_spec.rb@@ -102,6 +102,8 @@ RSpec.describe "Copy work packages through Rails view", :js, :with_cuprite, withcontext_menu.choose "Bulk edit"select budget.subject, from: "work_package_budget_id"+ wait_for_network_idle+click_on "Submit"expect_and_dismiss_flash message: "Successful update."