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

Add modal overlay globally instead of just for angular views

Benjamin Bädorf94b7a7f00f99
diff --git a/app/views/layouts/angular/angular.html.erb b/app/views/layouts/angular/angular.html.erb
index dc616dd8fea..ece77f89259 100644
--- a/app/views/layouts/angular/angular.html.erb
+++ b/app/views/layouts/angular/angular.html.erb
@@ -40,9 +40,6 @@ See COPYRIGHT and LICENSE files for more details.
<div id="projected-content" hidden>
<%= yield %>
</div>
-
- <%# Modals will be rendered into this global overlay %>
- <op-modal-overlay></op-modal-overlay>
<% end -%>
<%= render template: 'layouts/base', locals: local_assigns.merge({ no_action_menu: true }) %>
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index 7c487e9f037..761d346777c 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -59,6 +59,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
</noscript>
<op-toasts-container></op-toasts-container>
+<op-modal-overlay></op-modal-overlay>
<% main_menu = render_main_menu(local_assigns.fetch(:menu_name, nil), @project) %>
<% side_displayed = content_for?(:sidebar) || content_for?(:main_menu) || !main_menu.blank? %>
<% initial_classes = initial_menu_classes(side_displayed, show_decoration) %>
diff --git a/frontend/src/app/core/routing/openproject-router.module.ts b/frontend/src/app/core/routing/openproject-router.module.ts
index d77829f27f6..d77b6bdd159 100644
--- a/frontend/src/app/core/routing/openproject-router.module.ts
+++ b/frontend/src/app/core/routing/openproject-router.module.ts
@@ -29,7 +29,6 @@
import { Injector, NgModule } from '@angular/core';
import { FirstRouteService } from 'core-app/core/routing/first-route-service';
import { UIRouterModule } from '@uirouter/angular';
-import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module';
import { ApplicationBaseComponent } from 'core-app/core/routing/base/application-base.component';
import {
initializeUiRouterListeners,
@@ -44,9 +43,6 @@ import {
useHash: false,
config: uiRouterConfiguration,
} as any),
-
- // Modals
- OpenprojectModalModule,
],
providers: [
FirstRouteService,