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
Clean up JS code
Klaus Zanders4f93c2e21a2a
diff --git a/frontend/src/turbo/setup.ts b/frontend/src/turbo/setup.tsindex 9a3f5d27a87..9bd905bbb9a 100644--- a/frontend/src/turbo/setup.ts+++ b/frontend/src/turbo/setup.ts@@ -2,7 +2,6 @@ import '../typings/shims.d.ts';import * as Turbo from '@hotwired/turbo';import { registerDialogStreamAction } from './dialog-stream-action';import { addTurboEventListeners } from './turbo-event-listeners';-import { ModalDialogElement } from '@openproject/primer-view-components/app/components/primer/alpha/modal_dialog';// Disable default turbo-drive for now as we don't need it for now AND it breaks angular routingTurbo.session.drive = false;diff --git a/frontend/src/turbo/turbo-event-listeners.ts b/frontend/src/turbo/turbo-event-listeners.tsindex 3ef186bc28e..3e9b24c0234 100644--- a/frontend/src/turbo/turbo-event-listeners.ts+++ b/frontend/src/turbo/turbo-event-listeners.ts@@ -11,7 +11,10 @@ export function addTurboEventListeners() {if (success && target instanceof HTMLFormElement) {const dialog = target.closest('dialog') as HTMLDialogElement;- dialog && dialog.dataset.keepOpenOnSubmit !== 'true' && dialog.close();++ if (dialog && dialog.dataset.keepOpenOnSubmit !== 'true') {+ dialog.close();+ }}});}